From 63d2c5bbfafafd70b872d9f5aa6495541978bb6f Mon Sep 17 00:00:00 2001 From: Louis Williams Date: Fri, 24 Apr 2020 16:06:31 -0400 Subject: SERVER-47325 indexbg_killop_primary_after_init.js should only let the index builder continue once the abort has been confirmed --- jstests/noPassthrough/indexbg_killop_primary_after_init.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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'})); -- cgit v1.2.1