diff options
author | Eliot Horowitz <eliot@10gen.com> | 2012-06-16 12:09:01 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2012-06-16 12:09:01 -0400 |
commit | 064aadf45486b3be622cf7973f2cbadc6eac3e9c (patch) | |
tree | d2cbde44f2d054ea64d66aef04423673902a638c /jstests/sharding/migrateBig.js | |
parent | 372ef0946ff5dae940ebc518c85bdbd6338535cf (diff) | |
download | mongo-064aadf45486b3be622cf7973f2cbadc6eac3e9c.tar.gz |
try to make migrateBig a little more reliable
Diffstat (limited to 'jstests/sharding/migrateBig.js')
-rw-r--r-- | jstests/sharding/migrateBig.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/sharding/migrateBig.js b/jstests/sharding/migrateBig.js index 46b6a89bd78..a42b7768746 100644 --- a/jstests/sharding/migrateBig.js +++ b/jstests/sharding/migrateBig.js @@ -1,6 +1,6 @@ s = new ShardingTest( "migrateBig" , 2 , 0 , 1 , { chunksize : 1 } ); - +s.config.settings.update( { _id: "balancer" }, { $set : { stopped: true } } , true ); s.adminCommand( { enablesharding : "test" } ); s.adminCommand( { shardcollection : "test.foo" , key : { x : 1 } } ); @@ -13,6 +13,7 @@ while ( big.length < 10000 ) for ( x=0; x<100; x++ ) coll.insert( { x : x , big : big } ) +db.getLastError(); s.adminCommand( { split : "test.foo" , middle : { x : 33 } } ) s.adminCommand( { split : "test.foo" , middle : { x : 66 } } ) |