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