summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis Williams <louis.williams@mongodb.com>2020-04-24 16:06:31 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-04-24 21:58:51 +0000
commit63d2c5bbfafafd70b872d9f5aa6495541978bb6f (patch)
treef47b631f8df1681e0b9742601f01eef1ec3a5eba
parent2cc8dcf2807a19cffe0d93c857730ec694696abf (diff)
downloadmongo-63d2c5bbfafafd70b872d9f5aa6495541978bb6f.tar.gz
SERVER-47325 indexbg_killop_primary_after_init.js should only let the index builder continue once the abort has been confirmed
-rw-r--r--jstests/noPassthrough/indexbg_killop_primary_after_init.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/noPassthrough/indexbg_killop_primary_after_init.js b/jstests/noPassthrough/indexbg_killop_primary_after_init.js
index 20f7da37559..d59af6ca31d 100644
--- a/jstests/noPassthrough/indexbg_killop_primary_after_init.js
+++ b/jstests/noPassthrough/indexbg_killop_primary_after_init.js
@@ -48,8 +48,9 @@ try {
const filter = {"desc": {$regex: /conn.*/}};
const opId = IndexBuildTest.waitForIndexBuildToStart(testDB, coll.getName(), 'a_1', filter);
- // Kill the index build.
+ // Kill the index build and wait for it to abort.
assert.commandWorked(testDB.killOp(opId));
+ checkLog.containsJson(primary, 4656003);
} finally {
assert.commandWorked(
primary.adminCommand({configureFailPoint: 'hangAfterInitializingIndexBuild', mode: 'off'}));