Permalink
Browse files

buildbot replReads.js hidden nodes now correctly updated in mongos, s…

…hould disappear from config
  • Loading branch information...
1 parent 9ee926a commit 5c71438495f75c3de4a2f8f8eeb16f226c2f9563 Greg Studer committed with erh Dec 16, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 jstests/slowNightly/replReads.js
@@ -77,9 +77,14 @@ function testReadLoadBalancing(numReplicas) {
var x = rsStats();
printjson(x);
var numOk = 0;
+ // Now wait until the host disappears, since now we actually update our
+ // replica sets via isMaster in mongos
+ if( x.hosts.length == rs.conf()["members"].length - 1 ) return true
+ /*
for ( var i=0; i<x.hosts.length; i++ )
if ( x.hosts[i].hidden )
return true;
+ */
return false;
} , "one slave not ok" , 180000 , 5000
);

0 comments on commit 5c71438

Please sign in to comment.