Ignore NamespaceNotFound errors when running collMod during checkReplicaSet in replsettest.js

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 3.6.7, 4.0.2, 4.1.2
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Fully Compatible
    • ALL
    • v4.0, v3.6
    • Repl 2018-07-02, Repl 2018-07-16, Repl 2018-07-30
    • 37
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      When running checkReplicaSet in replsettest.js, we run collMod on all the collections to wait for any index builds before running awaitReplication. However, if there is a background thread running a command, it could potentially drop a collection after listCollections but before collMod, causing a "NamespaceNotFound" error.

      To fix this, check the output of runCommand to see if there was a "NamespaceNotFound" error and if so, ignore it.

            Assignee:
            Samyukta Lanka
            Reporter:
            Samyukta Lanka
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: