SERVER-21996 Wait for replication to all nodes before shutting down config server primary in test

This commit is contained in:
Spencer T Brody 2015-12-22 17:06:40 -05:00
parent f5b27f93ab
commit ae83937130

View File

@ -25,6 +25,10 @@ var seedList = rst.name + "/" + rst.nodes[1].host; // node 1 is guaranteed to no
MongoRunner.stopMongos(mongos);
}
// Wait for replication to all config server replica set members to ensure that mongos
// doesn't read from a stale config server when trying to verify if the initial cluster metadata
// has been properly written.
rst.awaitReplication();
// Now take down the one electable node
rst.stop(0);
rst.awaitNoPrimary();