summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Studer <greg@10gen.com>2012-10-18 19:08:41 -0400
committerGreg Studer <greg@10gen.com>2012-10-19 09:50:50 -0400
commit58abadd4c00e93e771b1660d9f0b878476539f12 (patch)
treeb254b41bc054b50ba7fefbff36020ca49a29ed01
parent08c3f9885b4d89958e71b4030e3a1bbffce3bec6 (diff)
downloadmongo-58abadd4c00e93e771b1660d9f0b878476539f12.tar.gz
buildbot sharding_balance4.js turn off balancer during initial load so that we are sure to have a chunk diff
-rw-r--r--jstests/slowNightly/sharding_balance4.js12
1 files changed, 11 insertions, 1 deletions
diff --git a/jstests/slowNightly/sharding_balance4.js b/jstests/slowNightly/sharding_balance4.js
index 43ca23d78bf..33db1db1da9 100644
--- a/jstests/slowNightly/sharding_balance4.js
+++ b/jstests/slowNightly/sharding_balance4.js
@@ -3,6 +3,7 @@
// check that doing updates done during a migrate all go to the right place
s = new ShardingTest( "slow_sharding_balance4" , 2 , 1 , 1 , { chunksize : 1 } )
+s.stopBalancer();
s.adminCommand( { enablesharding : "test" } );
s.adminCommand( { shardcollection : "test.foo" , key : { _id : 1 } } );
@@ -63,7 +64,11 @@ function check( msg , dontAssert ){
print( "not asserting for key failure: " + x + " want: " + e + " got: " + tojson(z) )
return false;
}
-
+
+ s.s.getDB("admin").runCommand({ setParameter : 1, logLevel : 2 })
+
+ printjson( db.foo.findOne( { _id : parseInt( x ) } ) )
+
// we will assert past this point but wait a bit to see if it is because the missing update
// was being held in the writeback roundtrip
sleep( 10000 );
@@ -84,6 +89,9 @@ function check( msg , dontAssert ){
}
function diff1(){
+
+ jsTest.log("Running diff1...")
+
var myid = doUpdate( false )
var le = db.getLastErrorCmd();
@@ -117,6 +125,8 @@ function sum(){
assert.lt( 20 , diff1() ,"initial load" );
print( diff1() )
+s.startBalancer();
+
assert.soon( function(){
var d = diff1();