Skip to content

Commit 30b5c67

Browse files
author
gregs
committed
buildbot turn off balancer when manually moving chunks parallel.js
1 parent a67d3bb commit 30b5c67

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jstests/sharding/parallel.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
numShards = 3
22
s = new ShardingTest( "parallel" , numShards , 2 , 2 , { sync : true } );
3+
s.setBalancer( false )
34

45
s.adminCommand( { enablesharding : "test" } );
56
s.adminCommand( { shardcollection : "test.foo" , key : { _id : 1 } } );
@@ -13,7 +14,7 @@ for ( i=0; i<N; i+=(N/12) ) {
1314
sh.moveChunk( "test.foo", { _id : i } , "shard000" + Math.floor( Math.random() * numShards ) )
1415
}
1516

16-
17+
s.setBalancer( true )
1718
for ( i=0; i<N; i++ )
1819
db.foo.insert( { _id : i } )
1920
db.getLastError();

0 commit comments

Comments
 (0)