summaryrefslogtreecommitdiff
path: root/jstests/noPassthroughWithMongod/indexbg_restart_secondary.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/noPassthroughWithMongod/indexbg_restart_secondary.js')
-rw-r--r--jstests/noPassthroughWithMongod/indexbg_restart_secondary.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/noPassthroughWithMongod/indexbg_restart_secondary.js b/jstests/noPassthroughWithMongod/indexbg_restart_secondary.js
index a84e2b57293..26b8083de75 100644
--- a/jstests/noPassthroughWithMongod/indexbg_restart_secondary.js
+++ b/jstests/noPassthroughWithMongod/indexbg_restart_secondary.js
@@ -27,8 +27,6 @@
var master = replTest.getPrimary();
var second = replTest.getSecondary();
- var secondId = replTest.getNodeId(second);
-
var masterDB = master.getDB('bgIndexSec');
var secondDB = second.getDB('bgIndexSec');
@@ -60,7 +58,9 @@
// the oplog entry so it isn't replayed. If (A) is present without (B), then there are two ways
// that the index can be rebuilt on startup and this test is only for the one triggered by (A).
secondDB.adminCommand({fsync: 1});
- replTest.restart(secondId, {}, /*signal=*/9, /*wait=*/true);
+
+ MongoRunner.stopMongod(second, 9, {allowedExitCode: MongoRunner.EXIT_SIGKILL});
+ replTest.start(second, {}, /*restart=*/true, /*wait=*/true);
// Make sure secondary comes back.
assert.soon(function() {