summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/index_stepdown_after_init.js
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2020-05-07 07:39:06 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-05-07 11:52:47 +0000
commit474e6228cf95e16aa205256a0f15ef9f9388252d (patch)
tree2b1ad04f25873c901ca49afd064ff8840f0fb192 /jstests/noPassthrough/index_stepdown_after_init.js
parent03df68b3e2fb6d6d30dea41a581e3c3aec874f33 (diff)
downloadmongo-474e6228cf95e16aa205256a0f15ef9f9388252d.tar.gz
SERVER-38961 remove IndexBuildTest.supportsTwoPhaseIndexBuild() references from noPassthrough tests
Diffstat (limited to 'jstests/noPassthrough/index_stepdown_after_init.js')
-rw-r--r--jstests/noPassthrough/index_stepdown_after_init.js15
1 files changed, 0 insertions, 15 deletions
diff --git a/jstests/noPassthrough/index_stepdown_after_init.js b/jstests/noPassthrough/index_stepdown_after_init.js
index 9590f41d3ed..bcf10767adc 100644
--- a/jstests/noPassthrough/index_stepdown_after_init.js
+++ b/jstests/noPassthrough/index_stepdown_after_init.js
@@ -62,21 +62,6 @@ IndexBuildTest.waitForIndexBuildToStop(testDB);
const exitCode = createIdx({checkExitSuccess: false});
assert.neq(0, exitCode, 'expected shell to exit abnormally due to index build being terminated');
-if (!IndexBuildTest.supportsTwoPhaseIndexBuild(primary)) {
- // Wait for the index build to be unregistred.
- if (isJsonLog(primary)) {
- checkLog.containsJson(primary, 4656004);
- } else {
- checkLog.contains(primary, '[IndexBuildsCoordinatorMongod-0] Index build failed: ');
- }
-
- // Check that no new index has been created. This verifies that the index build was aborted
- // rather than successfully completed.
- IndexBuildTest.assertIndexes(coll, 1, ['_id_']);
- rst.stopSet();
- return;
-}
-
// With two phase index builds, a stepdown will not abort the index build, which should complete
// after the node becomes primary again.
rst.awaitReplication();