mongorestore assumes admin.system.version only contains authSchema document

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: 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 (Inactive)
            Reporter:
            Tess Avitabile (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: