summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoustafa Maher Khalil <m.maher@mongodb.com>2022-06-01 19:50:53 +0000
committerMoustafa Maher Khalil <m.maher@mongodb.com>2022-06-29 21:31:44 +0000
commit6e2dcc5a39eb2de9d2e8209271115c078ae16470 (patch)
tree0ae98a6a11fa43da910137815bc7a7dbace34d27
parentdd216e3ed38099dbf0ff16899fa21bbb1744e482 (diff)
downloadmongo-r6.0.0-rc13.tar.gz
SERVER-65233 dropIndex command in collection_uuid FSM test can succeed with indexNotFound errorr6.0.0-rc13
-rw-r--r--jstests/concurrency/fsm_workloads/collection_uuid.js5
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};