diff options
author | gregs <greg@10gen.com> | 2012-06-06 13:26:01 -0400 |
---|---|---|
committer | gregs <greg@10gen.com> | 2012-06-06 13:28:29 -0400 |
commit | 06fab23c488e70f1b2705e09ad3ed56601dfe81e (patch) | |
tree | 93426389ca11dc7dbd11dba5f24ac76d20bcb0e6 /jstests/slowNightly/sharding_rs2.js | |
parent | 28738bb734ad6c8ed7f88ae8ac5eb855b8883f71 (diff) | |
download | mongo-06fab23c488e70f1b2705e09ad3ed56601dfe81e.tar.gz |
SERVER-6006 buildbot sharding_rs2.js turn off balancer in test before split/migrate
Diffstat (limited to 'jstests/slowNightly/sharding_rs2.js')
-rw-r--r-- | jstests/slowNightly/sharding_rs2.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/jstests/slowNightly/sharding_rs2.js b/jstests/slowNightly/sharding_rs2.js index 8feb21ea78d..dde363a52b7 100644 --- a/jstests/slowNightly/sharding_rs2.js +++ b/jstests/slowNightly/sharding_rs2.js @@ -116,6 +116,9 @@ assert.eq( 100 , db.foo.count() , "C1" ) s.adminCommand( { enablesharding : "test" } ); s.adminCommand( { shardcollection : "test.foo" , key : { x : 1 } } ); +// We're doing some manual chunk stuff, so stop the balancer first +s.stopBalancer() + assert.eq( 100 , t.count() , "C2" ) s.adminCommand( { split : "test.foo" , middle : { x : 50 } } ) @@ -127,6 +130,9 @@ assert.eq( 100 , t.count() , "C3" ) assert.eq( 50 , rs.test.getMaster().getDB( "test" ).foo.count() , "C4" ) +// Let the balancer start again +s.setBalancer( true ) + // by non-shard key m = new Mongo( s.s.name ); |