summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Becker <ben.becker@10gen.com>2013-03-05 13:04:54 -0800
committerBen Becker <ben.becker@10gen.com>2013-03-05 13:04:54 -0800
commit0893701ad4a183589e08d3e00428b6f1d5a37124 (patch)
tree6ba0b85a0bb450df86f7f1b9c53d10883ac59d3b
parent081a0a87a20d51ded630c967ce31b4a607d5035d (diff)
downloadmongo-0893701ad4a183589e08d3e00428b6f1d5a37124.tar.gz
SERVER-8794: use a dedicated config server for features3.js and add debug output
-rw-r--r--jstests/sharding/features3.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/jstests/sharding/features3.js b/jstests/sharding/features3.js
index 3c349927108..dab9f1d1634 100644
--- a/jstests/sharding/features3.js
+++ b/jstests/sharding/features3.js
@@ -6,7 +6,10 @@
// - Verifies a $where query can be killed on multiple DBs
// - Tests fsync and fsync+lock permissions on sharded db
-var s = new ShardingTest( "features3" , 2 , 1 , 1 );
+var s = new ShardingTest({shards: 2,
+ mongos: 1,
+ verbose:1,
+ other: {separateConfig: true}});
var db = s.getDB("test"); // db variable name is required due to startParallelShell()
var numDocs = 10000;
db.foo.drop();
@@ -71,7 +74,7 @@ var parallelCommand =
print("about to fork new shell at: " + Date());
join = startParallelShell(parallelCommand);
print("done forking shell at: " + Date());
-sleep(1000);
+
// Get all current $where operations
function getMine(printInprog) {
var inprog = db.currentOp().inprog;
@@ -95,7 +98,9 @@ var i = 0;
assert.soon(function() {
// Get all the current operations
- mine = getMine(curOpState == 0 && i > 20);
+ mine = getMine(true); // SERVER-8794: print all operations
+ // get curren tops, but only print out operations before we see a $where op has started
+ // mine = getMine(curOpState == 0 && i > 20);
i++;
// Wait for the queries to start