diff options
author | Greg Studer <greg@10gen.com> | 2013-02-26 16:23:39 -0500 |
---|---|---|
committer | Greg Studer <greg@10gen.com> | 2013-02-27 17:13:24 -0500 |
commit | e57f5d32d93cd23971cadfcdb93a4b9f07a0ef5a (patch) | |
tree | eb7485b9f38abb9381cbf5ccfacdd9a09c81196d /jstests/multiVersion | |
parent | 5eb8129fe56f7ef5454577416ac8b4fc12e2ae46 (diff) | |
download | mongo-e57f5d32d93cd23971cadfcdb93a4b9f07a0ef5a.tar.gz |
SERVER-8710 check balancer is stopped before upgrading
Diffstat (limited to 'jstests/multiVersion')
4 files changed, 13 insertions, 0 deletions
diff --git a/jstests/multiVersion/upgrade_cluster_v3_to_v4.js b/jstests/multiVersion/upgrade_cluster_v3_to_v4.js index f922bc1906d..3431a8e735e 100644 --- a/jstests/multiVersion/upgrade_cluster_v3_to_v4.js +++ b/jstests/multiVersion/upgrade_cluster_v3_to_v4.js @@ -32,6 +32,9 @@ var options = { var st = new ShardingTest({ shards : 2, mongos : 2, other : options }); +// Just stop balancer, to simulate race conds +st.setBalancer(false); + var shards = st.s0.getDB("config").shards.find().toArray(); var configConnStr = st._configDB; diff --git a/jstests/multiVersion/upgrade_cluster_v3_to_v4_db.js b/jstests/multiVersion/upgrade_cluster_v3_to_v4_db.js index 000484deb50..46124a8227a 100644 --- a/jstests/multiVersion/upgrade_cluster_v3_to_v4_db.js +++ b/jstests/multiVersion/upgrade_cluster_v3_to_v4_db.js @@ -19,6 +19,9 @@ var options = { var st = new ShardingTest({ shards : 1, mongos : 1, other : options }); +// Just set balancer to false, don't wait for it +st.setBalancer(false); + var mongos = st.s0 var config = mongos.getDB("config") var admin = mongos.getDB("admin") diff --git a/jstests/multiVersion/upgrade_cluster_v3_to_v4_wait_for_mongos.js b/jstests/multiVersion/upgrade_cluster_v3_to_v4_wait_for_mongos.js index 64da139e609..ba859edd7a7 100644 --- a/jstests/multiVersion/upgrade_cluster_v3_to_v4_wait_for_mongos.js +++ b/jstests/multiVersion/upgrade_cluster_v3_to_v4_wait_for_mongos.js @@ -19,6 +19,9 @@ var options = { var st = new ShardingTest({ shards : 1, mongos : 1, other : options }); +// Turn balancer off, don't wait +st.setBalancer(false); + var mongos = st.s0; jsTest.log( "Starting v2.0 mongos..." ); diff --git a/jstests/multiVersion/upgrade_cluster_v3_to_v4_with_parallel_ops.js b/jstests/multiVersion/upgrade_cluster_v3_to_v4_with_parallel_ops.js index b0ad24d55b8..77579de5615 100644 --- a/jstests/multiVersion/upgrade_cluster_v3_to_v4_with_parallel_ops.js +++ b/jstests/multiVersion/upgrade_cluster_v3_to_v4_with_parallel_ops.js @@ -176,6 +176,10 @@ printShardingStatus(config, true); jsTest.log("Upgrading config db from v3 to v4..."); +// Just stop the balancer, but don't wait for it to stop, to simulate race conds +st.setBalancer(false); +printjson(config.settings.find().toArray()); + var startTime = new Date(); // Make sure up |