From 05d91d94697112517e8120e95294212a9e4af2ae Mon Sep 17 00:00:00 2001 From: Moustafa Maher Khalil Date: Wed, 1 Jun 2022 19:50:53 +0000 Subject: SERVER-65233 dropIndex command in collection_uuid FSM test can succeed with indexNotFound error --- jstests/concurrency/fsm_workloads/collection_uuid.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'jstests/concurrency') 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}; -- cgit v1.2.1