summaryrefslogtreecommitdiff
path: root/jstests/sharding/parallel.js
diff options
context:
space:
mode:
authorgregs <greg@10gen.com>2011-10-05 23:57:42 -0400
committergregs <greg@10gen.com>2011-10-10 12:22:41 -0400
commit30b5c677c7d7f3b87df1d9132f48cb55b3e448a6 (patch)
tree88279d29af713938f72e773f6e7281caa215f3eb /jstests/sharding/parallel.js
parenta67d3bb4d58f881ba006412e5941a0866dfdd57c (diff)
downloadmongo-30b5c677c7d7f3b87df1d9132f48cb55b3e448a6.tar.gz
buildbot turn off balancer when manually moving chunks parallel.js
Diffstat (limited to 'jstests/sharding/parallel.js')
-rw-r--r--jstests/sharding/parallel.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/sharding/parallel.js b/jstests/sharding/parallel.js
index d35459c3730..07a2c009450 100644
--- a/jstests/sharding/parallel.js
+++ b/jstests/sharding/parallel.js
@@ -1,5 +1,6 @@
numShards = 3
s = new ShardingTest( "parallel" , numShards , 2 , 2 , { sync : true } );
+s.setBalancer( false )
s.adminCommand( { enablesharding : "test" } );
s.adminCommand( { shardcollection : "test.foo" , key : { _id : 1 } } );
@@ -13,7 +14,7 @@ for ( i=0; i<N; i+=(N/12) ) {
sh.moveChunk( "test.foo", { _id : i } , "shard000" + Math.floor( Math.random() * numShards ) )
}
-
+s.setBalancer( true )
for ( i=0; i<N; i++ )
db.foo.insert( { _id : i } )
db.getLastError();