summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough
diff options
context:
space:
mode:
authorLouis Williams <louis.williams@mongodb.com>2019-10-01 14:54:40 +0000
committerevergreen <evergreen@mongodb.com>2019-10-01 14:54:40 +0000
commit169ab4da87a55a3c53d1686606f74e08748e8af2 (patch)
treee3d847f7a83f2613fe59e4920bb08390f905fbe9 /jstests/noPassthrough
parentcd5a510974d939860046e29fd4cdcaf41c921f26 (diff)
downloadmongo-169ab4da87a55a3c53d1686606f74e08748e8af2.tar.gz
SERVER-43353 index_stepdown_init.js must handle error messages other than IndexBuildAborted
Diffstat (limited to 'jstests/noPassthrough')
-rw-r--r--jstests/noPassthrough/index_stepdown_after_init.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/jstests/noPassthrough/index_stepdown_after_init.js b/jstests/noPassthrough/index_stepdown_after_init.js
index b179d5255e9..f52fb44899e 100644
--- a/jstests/noPassthrough/index_stepdown_after_init.js
+++ b/jstests/noPassthrough/index_stepdown_after_init.js
@@ -52,7 +52,9 @@ IndexBuildTest.waitForIndexBuildToStop(testDB);
const exitCode = createIdx({checkExitSuccess: false});
assert.neq(0, exitCode, 'expected shell to exit abnormally due to index build being terminated');
-checkLog.contains(primary, 'IndexBuildAborted: Index build aborted: ');
+// Wait for the IndexBuildCoordinator thread, not the command thread, to report the index build as
+// failed.
+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.