Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-16116

Server should not start if datafiles from other storage engine are present in dbpath

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Duplicate
    • Affects Version/s: 2.8.0-rc0
    • Fix Version/s: None
    • Component/s: Storage, Usability
    • Labels:
      None

      Description

      Say I start mongod with mmapv1 enabled in a clean directory:

      mongod --dbpath=mongodata --storageEngine=mmapv1

      Then exit the server.

      then if I start the server with the same dbpath but with wiredtiger:

      mongod --dbpath=mongodata --storageEngine=wiredtiger

      the server will happily start writing data files to the same directory mmapv1 was using. (Also happens if I do wiredtiger, than mmap)

      This is probably going to cause some confusion and/or misconfiguration at some point. I think it would be better if we detected that we are starting in a non-empty dbpath with incompatible data files and refuse to start.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              adam.midvidy Adam Midvidy
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: