diff options
author | Ali Mir <ali.mir@mongodb.com> | 2020-07-20 18:00:20 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-08-03 22:10:55 +0000 |
commit | 77e2cd03f0c8768dd7e21ac9c3f831c7f74a1749 (patch) | |
tree | ee0f300f1b5e60ef597c7c36e5818c6288f3b886 /jstests/sharding | |
parent | b08444271513a131cdb204379a12e4bf6c99d8be (diff) | |
download | mongo-77e2cd03f0c8768dd7e21ac9c3f831c7f74a1749.tar.gz |
SERVER-48206 Check process exit codes when stopping nodes in replsettest.js
Diffstat (limited to 'jstests/sharding')
-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); |