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

system.profile in non-local dbs will trigger a 3.4 downgrade prior to rs initiate

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Storage
    • Labels:
      None
    • Operating System:
      ALL
    • Steps To Reproduce:
      Hide

      1. Start mongod
      ./mongod --replSet foo --bind_ip 0.0.0.0
      2. Start mongo
      ./mongo
      3. Create test.system.profile
      db.setProfilingLevel(2)
      4. Shut down mongod
      use admin
      db.shutdownServer()
      5. Restart mongod
      The log shows this message and aborts startup:

      ** IMPORTANT: There is no feature compatibility document. A 3.4 binary must be used.
      ** 

      Show
      1. Start mongod ./mongod --replSet foo --bind_ip 0.0.0.0 2. Start mongo ./mongo 3. Create test.system.profile db.setProfilingLevel(2) 4. Shut down mongod use admin db.shutdownServer() 5. Restart mongod The log shows this message and aborts startup: ** IMPORTANT: There is no feature compatibility document. A 3.4 binary must be used. **

      Description

      A system.profile collection can be created in any replicated database prior to an initiation of a replica set. mongod startup code currently assumes that if any non-local databases exist, they must have been created with 3.4, but this is not true for system.profile.

      By creating a system.profile collection in a replicated database and then restarting mongod, the startup code will downgrade the data files to 3.4 and refuse to start.

        Attachments

          Activity

            People

            Assignee:
            backlog-server-execution Backlog - Storage Execution Team
            Reporter:
            milkie Eric Milkie
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: