Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…hould disappear from config
  • Loading branch information...
commit 5c71438495f75c3de4a2f8f8eeb16f226c2f9563 1 parent 9ee926a
Greg Studer authored erh committed
Showing with 5 additions and 0 deletions.
  1. +5 −0 jstests/slowNightly/replReads.js
5 jstests/slowNightly/replReads.js
View
@@ -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
);
Please sign in to comment.
Something went wrong with that request. Please try again.