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

Restore tool should ignore conflicting authSchemaVersion

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.8.0-rc3
    • 2.8.0-rc0
    • mongorestore
    • None
    • 2014 Last MCI Iteration

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: