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

mongorestore assumes admin.system.version only contains authSchema document

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.3.12, 3.2.10, 3.3.14
    • Affects Version/s: None
    • Component/s: None
    • None
    • Platforms 2016-08-26
    • v3.2

      In GetDumpAuthVersion(), we try to read the authSchema document from the admin.system.version collection by reading the first document from the collection. In SERVER-25155, we are adding a new document called featureCompatibilityVersion to the admin.system.version collection. Then if the first document in the collection is featureCompatibilityVersion, we will think it is the authSchema document and fail here. Instead of reading the first document from the collection, we should check that _id is 'authSchema'.

      For example, SERVER-25155 will cause this test to fail. To commit SERVER-25155, we will need to ban this test until this issue is fixed.

            Assignee:
            gabriel.russell@mongodb.com Gabriel Russell (Inactive)
            Reporter:
            tess.avitabile@mongodb.com Tess Avitabile (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: