diff options
author | Moustafa Maher Khalil <m.maher@mongodb.com> | 2022-06-01 19:50:53 +0000 |
---|---|---|
committer | Moustafa Maher Khalil <m.maher@mongodb.com> | 2022-06-29 21:31:44 +0000 |
commit | 6e2dcc5a39eb2de9d2e8209271115c078ae16470 (patch) | |
tree | 0ae98a6a11fa43da910137815bc7a7dbace34d27 | |
parent | dd216e3ed38099dbf0ff16899fa21bbb1744e482 (diff) | |
download | mongo-6e2dcc5a39eb2de9d2e8209271115c078ae16470.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.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}; |