diff options
-rw-r--r-- | jstests/concurrency/fsm_workloads/collection_uuid.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/jstests/concurrency/fsm_workloads/collection_uuid.js b/jstests/concurrency/fsm_workloads/collection_uuid.js index 5cdfc4eb38f..7e16eac0246 100644 --- a/jstests/concurrency/fsm_workloads/collection_uuid.js +++ b/jstests/concurrency/fsm_workloads/collection_uuid.js @@ -229,7 +229,10 @@ var $config = (function() { index: {[indexField]: 1}, collectionUUID: this.collUUID }; - testCommand(db, namespace, "dropIndexes", dropIndexCmd, this); + // Consecutive drop commands can results in 'IndexNotFound' error, so on retry some + // shards can fail while others succeed. + testCommand( + db, namespace, "dropIndexes", dropIndexCmd, this, [ErrorCodes.IndexNotFound]); } return {init: init, rename: rename, crud: crud, indexCommands: indexCommands}; |