Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-35246

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

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 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

      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:
            samy.lanka@mongodb.com Samyukta Lanka
            Reporter:
            samy.lanka@mongodb.com Samyukta Lanka
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: