diff options
author | Greg Studer <greg@10gen.com> | 2012-10-01 13:38:59 -0400 |
---|---|---|
committer | Greg Studer <greg@10gen.com> | 2012-10-01 13:39:30 -0400 |
commit | 3b9b88caaf9dddedd05d894e257d6b47b3985840 (patch) | |
tree | bca1e316d49ff8714fead7d94da15193a164cd05 /jstests/sharding | |
parent | 4b54bd515c29c7710221c0d137f19d00df86080c (diff) | |
download | mongo-3b9b88caaf9dddedd05d894e257d6b47b3985840.tar.gz |
buildbot writeback_bulk_insert.js use correct collection for last writeback and disable autosplit
Diffstat (limited to 'jstests/sharding')
-rw-r--r-- | jstests/sharding/writeback_bulk_insert.js | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/jstests/sharding/writeback_bulk_insert.js b/jstests/sharding/writeback_bulk_insert.js index 1d97b3aafab..0d27eee28e8 100644 --- a/jstests/sharding/writeback_bulk_insert.js +++ b/jstests/sharding/writeback_bulk_insert.js @@ -7,7 +7,8 @@ jsTest.log("Starting sharded cluster...") var st = new ShardingTest({shards : 1, mongos : 3, verbose : 2, - separateConfig : 1}) + other : {separateConfig : true, + mongosOptions : {noAutoSplit : ""}}}) st.stopBalancer() @@ -25,7 +26,7 @@ var collB = mongosB.getCollection("" + collA) collB.insert({hello : "world"}) assert.eq(null, collB.getDB().getLastError()) -var collC = mongosB.getCollection("" + collA) +var collC = mongosC.getCollection("" + collA) collC.insert({hello : "world"}) assert.eq(null, collC.getDB().getLastError()) @@ -39,8 +40,6 @@ printjson(mongosA.getDB("admin").runCommand({shardCollection : collA + "", // MongoD doesn't know about the config shard version *until* MongoS tells it collA.findOne() -// Preparing insert of exactly 16MB - jsTest.log("Preparing bulk insert...") var data1MB = "x" @@ -57,7 +56,8 @@ print("7MB object size is : " + Object.bsonsize({_id : 0, var dataCloseTo8MB = data7MB; // WARNING - MAGIC NUMBERS HERE -// The idea is to exceed the 16MB limit by just enough so that the message gets passed in the +// The idea is to exceed the 16MB limit by just enough so that the message gets +// passed in the // shell, but adding additional writeback information fails. for ( var i = 0; i < 1031 * 1024 + 862; i++) { dataCloseTo8MB += "x" @@ -102,7 +102,7 @@ collC.insert([{_id : 0, {_id : 1, d : data8MB}]) -// Should succeed since our insert size is 16MB (plus very small overhead) +// Should succeed since our insert size is 16MB (plus very small overhead) jsTest.log("Waiting for GLE...") assert.eq(null, collC.getDB().getLastError()) @@ -111,5 +111,6 @@ print("GLE Successful...") assert.eq(5, collA.find().itcount()) assert.eq(5, collB.find().itcount()) +assert.eq(5, collC.find().itcount()) st.stop() |