diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2016-06-15 17:29:43 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2016-06-15 17:37:33 -0400 |
commit | 9b00106b56966b334c878f36cca14deb71f6d8c7 (patch) | |
tree | 1e1fbecbad04b5596622eefcb5d8e0e498b21996 | |
parent | bfde0ecb1ca31c35a37f90a7706987acc0c217f7 (diff) | |
download | mongo-9b00106b56966b334c878f36cca14deb71f6d8c7.tar.gz |
SERVER-22672 shard3.js should not stop the balancer through sh
Also removes the jumbo1.js test from the stepdown suite because it never
completes due to the balancer starting and stopping too frequently.
-rw-r--r-- | buildscripts/resmokeconfig/suites/sharding_continuous_config_stepdown.yml | 3 | ||||
-rw-r--r-- | jstests/sharding/shard3.js | 13 |
2 files changed, 9 insertions, 7 deletions
diff --git a/buildscripts/resmokeconfig/suites/sharding_continuous_config_stepdown.yml b/buildscripts/resmokeconfig/suites/sharding_continuous_config_stepdown.yml index 2677012d15c..26a22814580 100644 --- a/buildscripts/resmokeconfig/suites/sharding_continuous_config_stepdown.yml +++ b/buildscripts/resmokeconfig/suites/sharding_continuous_config_stepdown.yml @@ -112,6 +112,9 @@ selector: - jstests/sharding/commands_that_write_accept_wc_configRS.js - jstests/sharding/commands_that_write_accept_wc_shards.js - jstests/sharding/move_chunk_wc.js + # Test never completes because the CSRS balancer gets restarted too many times + - jstests/sharding/jumbo1.js + executor: js_test: config: diff --git a/jstests/sharding/shard3.js b/jstests/sharding/shard3.js index 64716ede81e..a380e0b10c2 100644 --- a/jstests/sharding/shard3.js +++ b/jstests/sharding/shard3.js @@ -10,20 +10,19 @@ s.adminCommand({enablesharding: "test"}); s.ensurePrimaryShard('test', 'shard0001'); s.adminCommand({shardcollection: "test.foo", key: {num: 1}}); - if (s.configRS) { - // Ensure that the second mongos will see the movePrimary - s.configRS.awaitLastOpCommitted(); - } + + // Ensure that the second mongos will see the movePrimary + s.configRS.awaitLastOpCommitted(); assert(sh.getBalancerState(), "A1"); - sh.stopBalancer(); + s.stopBalancer(); assert(!sh.getBalancerState(), "A2"); - sh.startBalancer(); + s.startBalancer(); assert(sh.getBalancerState(), "A3"); - sh.stopBalancer(); + s.stopBalancer(); assert(!sh.getBalancerState(), "A4"); s.config.databases.find().forEach(printjson); |