diff options
Diffstat (limited to 'jstests/sharding/shard_kill_and_pooling.js')
-rw-r--r-- | jstests/sharding/shard_kill_and_pooling.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/jstests/sharding/shard_kill_and_pooling.js b/jstests/sharding/shard_kill_and_pooling.js index 70f36df99a1..4fb49741a1c 100644 --- a/jstests/sharding/shard_kill_and_pooling.js +++ b/jstests/sharding/shard_kill_and_pooling.js @@ -56,8 +56,10 @@ for (var test = 0; test < 2; test++) { var exitCode = killWith === 9 ? MongoRunner.EXIT_SIGKILL : MongoRunner.EXIT_CLEAN; - st.rs0.stopSet(killWith, true, {allowedExitCode: exitCode}); - + for (let node of st.rs0.nodes) { + st.rs0.stop( + st.rs0.getNodeId(node), killWith, {allowedExitCode: exitCode}, {forRestart: true}); + } jsTest.log("Restart shard..."); st.rs0.startSet({forceLock: true}, true); |