summaryrefslogtreecommitdiff
path: root/jstests/sharding/mongos_rs_shard_failure_tolerance.js
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2015-12-30 17:01:13 -0500
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2015-12-30 17:09:28 -0500
commite49a2a16fb4b337d7ed1b0ec8d766f281741d8bf (patch)
tree7f0cac8cb50e56819bfe2546a525076976b1e193 /jstests/sharding/mongos_rs_shard_failure_tolerance.js
parent715e9e1cdc618dad480a7a1a73458daf6ea9ce0f (diff)
downloadmongo-e49a2a16fb4b337d7ed1b0ec8d766f281741d8bf.tar.gz
SERVER-22027 Sharding should not retry killed operations
This change introduces a different interruption code (11602) which will be used to kill operations during replication primary stepdown so the config server retry logic can differentiate them from user-killed operations.
Diffstat (limited to 'jstests/sharding/mongos_rs_shard_failure_tolerance.js')
-rw-r--r--jstests/sharding/mongos_rs_shard_failure_tolerance.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/jstests/sharding/mongos_rs_shard_failure_tolerance.js b/jstests/sharding/mongos_rs_shard_failure_tolerance.js
index 6cd99a1bbc3..b5117439925 100644
--- a/jstests/sharding/mongos_rs_shard_failure_tolerance.js
+++ b/jstests/sharding/mongos_rs_shard_failure_tolerance.js
@@ -10,11 +10,10 @@
// sequence), idle (connection is connected but not used before a shard change), and new
// (connection connected after shard change).
//
+(function() {
+'use strict';
-var options = {rs : true, rsOptions : { nodes : 2 }};
-
-var st = new ShardingTest({shards : 3, mongos : 1, other : options});
-st.stopBalancer();
+var st = new ShardingTest({ shards: 3, mongos: 1, other: { rs: true, rsOptions: { nodes: 2 } } });
var mongos = st.s0;
var admin = mongos.getDB( "admin" );
@@ -412,6 +411,6 @@ assert.writeError(mongosConnNew.getCollection( collUnsharded.toString() ).insert
gc(); // Clean up new connections
-jsTest.log("DONE!");
st.stop();
+})();