diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-09-19 00:26:35 -0400 |
---|---|---|
committer | Alberto Lerner <alerner@10gen.com> | 2010-09-27 09:43:04 -0400 |
commit | 4e9c160741f9d85ffcedc75c039c6f1c80d4b7a8 (patch) | |
tree | 3d14e77d7a6b124d3a9882b5b039900683bff269 | |
parent | 6e47ce2fe75fc871d11bef53c5b930dda9c07e52 (diff) | |
download | mongo-4e9c160741f9d85ffcedc75c039c6f1c80d4b7a8.tar.gz |
trying to make feature3 more reliable
-rw-r--r-- | jstests/sharding/features3.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/jstests/sharding/features3.js b/jstests/sharding/features3.js index dccf1384083..b15ccd39e36 100644 --- a/jstests/sharding/features3.js +++ b/jstests/sharding/features3.js @@ -24,7 +24,9 @@ assert.eq( N / 2 , x.shards.shard0001.count , "count on shard0001" ) start = new Date() -join = startParallelShell( "db.foo.find( function(){ x = \"\"; for ( i=0; i<5000; i++ ){ x+=i; } return true; } ).itcount()" ) +print( "about to fork shell: " + Date() ) +join = startParallelShell( "db.foo.find( function(){ x = \"\"; for ( i=0; i<10000; i++ ){ x+=i; } return true; } ).itcount()" ) +print( "after forking shell: " + Date() ) function getMine( printInprog ){ var inprog = db.currentOp().inprog; @@ -42,7 +44,7 @@ function getMine( printInprog ){ state = 0; // 0 = not found, 1 = killed, killTime = null; -for ( i=0; i<200000; i++ ){ +for ( i=0; i<( 100* 1000 ); i++ ){ mine = getMine( state == 0 && i > 20 ); if ( state == 0 ){ if ( mine.length == 0 ){ @@ -58,6 +60,7 @@ for ( i=0; i<200000; i++ ){ state = 2; break; } + sleep(1) continue; } } |