Skip to content

Commit

Permalink
SERVER-2771 Add debugging to test
Browse files Browse the repository at this point in the history
  • Loading branch information
kchodorow committed Dec 17, 2012
1 parent 2dbcc5f commit 41cce28
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions jstests/slowNightly/index_multi.js
Expand Up @@ -39,7 +39,8 @@ for (var i=90; i<93; i++) {
spec["field"+i] = 1;
spec["field"+(i+1)] = 1;
spec["field"+(i+2)] = 1;
startParallelShell("db.index_multi.createIndex("+tojson(spec)+", {background:true});");
startParallelShell("db.index_multi.createIndex("+tojson(spec)+", {background:true});"
+"db.results.insert(db.runCommand({getlasterror:1}));");
specs.push(spec);
multikey.push(i % 10 == 0 || (i+1) % 10 == 0 || (i+2) % 10 == 0);
}
Expand All @@ -49,7 +50,8 @@ for (var i=30; i<90; i+=2) {
var spec = {};
spec["field"+i] = 1;
spec["field"+(i+1)] = 1;
startParallelShell("db.index_multi.createIndex("+tojson(spec)+", {background:true});");
startParallelShell("db.index_multi.createIndex("+tojson(spec)+", {background:true});"
+"db.results.insert(db.runCommand({getlasterror:1}));");
specs.push(spec);
multikey.push(i % 10 == 0 || (i+1) % 10 == 0);
}
Expand All @@ -58,7 +60,8 @@ print("Create 30 indexes");
for (var i=0; i<30; i++) {
var spec = {};
spec["field"+i] = 1;
startParallelShell("db.index_multi.createIndex("+tojson(spec)+", {background:true});");
startParallelShell("db.index_multi.createIndex("+tojson(spec)+", {background:true});"
+"db.results.insert(db.runCommand({getlasterror:1}));");
specs.push(spec);
multikey.push(i % 10 == 0);
}
Expand All @@ -79,6 +82,8 @@ for (i=0; i<1e4; i++) {
coll.update(criteria, mod);
}

printjson(db.results.find().toArray());

printjson(coll.getIndexes());

print("Make sure we end up with 64 indexes");
Expand Down

0 comments on commit 41cce28

Please sign in to comment.