diff options
author | Moustafa Maher Khalil <m.maher@mongodb.com> | 2022-06-01 19:50:53 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-06-01 20:18:14 +0000 |
commit | 05d91d94697112517e8120e95294212a9e4af2ae (patch) | |
tree | 1a3a0839c3d059d2972de3dbe829bfb0c0f33417 /jstests/concurrency | |
parent | 4f5b41424bf23d38f44cfd90e54c52b176b3fe4d (diff) | |
download | mongo-05d91d94697112517e8120e95294212a9e4af2ae.tar.gz |
SERVER-65233 dropIndex command in collection_uuid FSM test can succeed with indexNotFound error
Diffstat (limited to 'jstests/concurrency')
-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}; |