summaryrefslogtreecommitdiff
path: root/jstests/concurrency
diff options
context:
space:
mode:
authorGregory Wlodarek <gregory.wlodarek@mongodb.com>2020-02-19 13:55:54 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-02-19 20:39:41 +0000
commit37b61a5057dee96f7d0db0b592dd084b459b7824 (patch)
tree3a3a5e69c067a9a9b3b7d2812aed77f47f81dfc5 /jstests/concurrency
parent49643264238b895bd5ec1dfb39597f75a1db60ec (diff)
downloadmongo-37b61a5057dee96f7d0db0b592dd084b459b7824.tar.gz
SERVER-46122 Concurrency tests should expect the 'IndexBuildAborted' error code when dropping collections
Diffstat (limited to 'jstests/concurrency')
-rw-r--r--jstests/concurrency/fsm_workloads/access_collection_in_transaction_after_catalog_changes.js5
-rw-r--r--jstests/concurrency/fsm_workloads/yield_with_drop.js1
2 files changed, 4 insertions, 2 deletions
diff --git a/jstests/concurrency/fsm_workloads/access_collection_in_transaction_after_catalog_changes.js b/jstests/concurrency/fsm_workloads/access_collection_in_transaction_after_catalog_changes.js
index 6d9cddd0f06..b5823068f9c 100644
--- a/jstests/concurrency/fsm_workloads/access_collection_in_transaction_after_catalog_changes.js
+++ b/jstests/concurrency/fsm_workloads/access_collection_in_transaction_after_catalog_changes.js
@@ -232,8 +232,9 @@ var $config = (function() {
}
function createIndex(db, collName) {
- assertWhenOwnColl.commandWorked(
- db.getSiblingDB(this.ddlDBName)[this.ddlCollName].createIndex({x: 1}));
+ assertWhenOwnColl.commandWorkedOrFailedWithCode(
+ db.getSiblingDB(this.ddlDBName)[this.ddlCollName].createIndex({x: 1}),
+ [ErrorCodes.IndexBuildAborted]);
}
function dropColl(db, collName) {
diff --git a/jstests/concurrency/fsm_workloads/yield_with_drop.js b/jstests/concurrency/fsm_workloads/yield_with_drop.js
index f06f26beec8..e85e412ffc7 100644
--- a/jstests/concurrency/fsm_workloads/yield_with_drop.js
+++ b/jstests/concurrency/fsm_workloads/yield_with_drop.js
@@ -10,6 +10,7 @@ var $config = (function() {
ErrorCodes.ConflictingOperationInProgress,
ErrorCodes.CursorNotFound,
ErrorCodes.DuplicateKey,
+ ErrorCodes.IndexBuildAborted,
ErrorCodes.OperationFailed,
ErrorCodes.QueryPlanKilled,
],