summaryrefslogtreecommitdiff
path: root/jstests/sharding/shard_kill_and_pooling.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/sharding/shard_kill_and_pooling.js')
-rw-r--r--jstests/sharding/shard_kill_and_pooling.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/jstests/sharding/shard_kill_and_pooling.js b/jstests/sharding/shard_kill_and_pooling.js
index 369ebe6c3ee..54c5e9306bf 100644
--- a/jstests/sharding/shard_kill_and_pooling.js
+++ b/jstests/sharding/shard_kill_and_pooling.js
@@ -57,7 +57,9 @@ for (var test = 0; test < 2; test++) {
// Flush writes to disk, since sometimes we're killing uncleanly
assert(mongos.getDB("admin").runCommand({fsync: 1}).ok);
- MongoRunner.stopMongod(st.shard0, killWith);
+ var exitCode = killWith === 9 ? MongoRunner.EXIT_SIGKILL : MongoRunner.EXIT_CLEAN;
+
+ MongoRunner.stopMongod(st.shard0, killWith, {allowedExitCode: exitCode});
jsTest.log("Restart shard...");