diff options
author | Antonin Kral <a.kral@bobek.cz> | 2011-03-17 00:05:43 +0100 |
---|---|---|
committer | Antonin Kral <a.kral@bobek.cz> | 2011-03-17 00:05:43 +0100 |
commit | 582fc32574a3b158c81e49cb00e6ae59205e66ba (patch) | |
tree | ac64a3243e0d2121709f685695247052858115c8 /jstests/slowNightly/sharding_rs1.js | |
parent | 2761bffa96595ac1698d86bbc2e95ebb0d4d6e93 (diff) | |
download | mongodb-582fc32574a3b158c81e49cb00e6ae59205e66ba.tar.gz |
Imported Upstream version 1.8.0
Diffstat (limited to 'jstests/slowNightly/sharding_rs1.js')
-rw-r--r-- | jstests/slowNightly/sharding_rs1.js | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/jstests/slowNightly/sharding_rs1.js b/jstests/slowNightly/sharding_rs1.js index b7d90ba..4ad126e 100644 --- a/jstests/slowNightly/sharding_rs1.js +++ b/jstests/slowNightly/sharding_rs1.js @@ -43,10 +43,19 @@ function diff(){ assert.lt( 20 , diff() , "big differential here" ); print( diff() ) +{ + // quick test for SERVER-2686 + var mydbs = db.getMongo().getDBs().databases; + for ( var i=0; i<mydbs.length; i++ ) { + assert( mydbs[i].name != "local" , "mongos listDatabases can't return local" ); + } +} + + assert.soon( function(){ var d = diff(); return d < 5; -} , "balance didn't happen" , 1000 * 60 * 3 , 5000 ); +} , "balance didn't happen" , 1000 * 60 * 6 , 5000 ); s.config.settings.update( { _id: "balancer" }, { $set : { stopped: true } } , true ); @@ -56,7 +65,7 @@ for ( i=0; i<s._rs.length; i++ ){ x = r.test.getHashes( "test" ); print( r.url + "\t" + tojson( x ) ) for ( j=0; j<x.slaves.length; j++ ) - assert.eq( x.master.md5 , x.slaves[j].md5 , "hashes same for: " + r.url + " slave: " + j ); + assert.eq( x.master.md5 , x.slaves[j].md5 , "hashes not same for: " + r.url + " slave: " + j ); } |