Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-440

Restore tool should ignore conflicting authSchemaVersion

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.8.0-rc3
    • Affects Version/s: 2.8.0-rc0
    • Component/s: mongorestore
    • None
    • 2014 Last MCI Iteration

      If a new 28 node is started with auth, you have to create a “restore” user to do the restore, but creating a new user also creates the “authSchemaVersion” document "5", which conflicts with the one in the dump and causes a duplicate key error when restoring.

      1. The restore tool should not restore the authSchemaVersion if its already on the server but simply restore the users.
      2. In order to maintain compatibility the restore tool should not restore a dump file with authSchemaVersion <3 or to a server with authSchema <3.

            Assignee:
            kyle.erf Kyle Erf
            Reporter:
            andreas.nilsson Andreas Nilsson
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: