diff options
author | Louis Williams <louis.williams@mongodb.com> | 2020-04-24 16:06:31 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-04-24 21:58:51 +0000 |
commit | 63d2c5bbfafafd70b872d9f5aa6495541978bb6f (patch) | |
tree | f47b631f8df1681e0b9742601f01eef1ec3a5eba | |
parent | 2cc8dcf2807a19cffe0d93c857730ec694696abf (diff) | |
download | mongo-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.js | 3 |
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'})); |