diff options
author | Gregory Wlodarek <gregory.wlodarek@mongodb.com> | 2020-09-14 16:14:20 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-09-14 22:29:32 +0000 |
commit | fa23631569a7566a826cd18e9de8c1579fa99b11 (patch) | |
tree | 7b17c97222959424e73d279e9d369784c2f279fe /jstests | |
parent | 1649625556b1cb340979ac0551267f94b46db4d8 (diff) | |
download | mongo-fa23631569a7566a826cd18e9de8c1579fa99b11.tar.gz |
SERVER-50930 indexbg_killop_stepup.js should wait for the index build to abort before calling listIndexes
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/noPassthrough/indexbg_killop_stepup.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/jstests/noPassthrough/indexbg_killop_stepup.js b/jstests/noPassthrough/indexbg_killop_stepup.js index 1c9c7526752..6918a21933d 100644 --- a/jstests/noPassthrough/indexbg_killop_stepup.js +++ b/jstests/noPassthrough/indexbg_killop_stepup.js @@ -72,6 +72,9 @@ awaitStepUp(); rst.awaitReplication(); +// Wait for the index build to be aborted before asserting that it doesn't exist. +IndexBuildTest.waitForIndexBuildToStop(secondaryDB, coll.getName(), "a_1"); + IndexBuildTest.assertIndexes(coll, 1, ['_id_']); const secondaryColl = secondaryDB.getCollection(coll.getName()); |