diff options
author | Greg Studer <greg@10gen.com> | 2011-12-13 21:27:41 -0500 |
---|---|---|
committer | Greg Studer <greg@10gen.com> | 2011-12-13 21:27:41 -0500 |
commit | a841b2e681610b5eeed206f229ccd4945a1a1bc8 (patch) | |
tree | 94f9fc01909c6ed74c71a855880a605a4c8947be | |
parent | 6759c3ffa15febc7698442772f8c02075d35641a (diff) | |
download | mongo-a841b2e681610b5eeed206f229ccd4945a1a1bc8.tar.gz |
buildbot sharding_rs2.js wait for replica set update in mongos before trying slaveok'd connection
-rw-r--r-- | jstests/slowNightly/sharding_rs2.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/jstests/slowNightly/sharding_rs2.js b/jstests/slowNightly/sharding_rs2.js index 4de935b64b2..162a9c65c4b 100644 --- a/jstests/slowNightly/sharding_rs2.js +++ b/jstests/slowNightly/sharding_rs2.js @@ -71,6 +71,11 @@ for ( i=0; i<10; i++ ) assert.eq( 17 , ts.findOne().x , "B1" ) m.setSlaveOk() + +// Confusingly, v2.0 mongos does not actually update the secondary status of any members until after the first +// ReplicaSetMonitorWatcher round. Wait for that here. +ReplSetTest.awaitRSClientHosts( m, rs.test.getSecondaries()[0], { secondary : true } ) + for ( i=0; i<10; i++ ) assert.eq( 17 , ts.findOne().x , "B2" ) |