diff options
author | Randolph Tan <randolph@10gen.com> | 2016-11-09 16:07:38 -0500 |
---|---|---|
committer | Randolph Tan <randolph@10gen.com> | 2016-11-11 15:16:50 -0500 |
commit | e37cdd0c492aac1533e185636828ed8a714847a7 (patch) | |
tree | 37cec30ec65d8dafabdcdd1d5083dfef514c1167 | |
parent | 481ce654f0b5c4329c8a3fa19d1767bd52b89239 (diff) | |
download | mongo-e37cdd0c492aac1533e185636828ed8a714847a7.tar.gz |
SERVER-26065 Wait for remaining secondaries in autodiscover_config_rs_from_secondary.js to have the same opTime before doing a query with readAfterOptime
-rw-r--r-- | jstests/sharding/autodiscover_config_rs_from_secondary.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/jstests/sharding/autodiscover_config_rs_from_secondary.js b/jstests/sharding/autodiscover_config_rs_from_secondary.js index 2674f0369d2..d6d9dcdeb7a 100644 --- a/jstests/sharding/autodiscover_config_rs_from_secondary.js +++ b/jstests/sharding/autodiscover_config_rs_from_secondary.js @@ -26,9 +26,9 @@ } // 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 + // will be able to do majority reads when trying to verify if the initial cluster metadata // has been properly written. - rst.awaitReplication(); + rst.awaitLastOpCommitted(); // Now take down the one electable node rst.stop(0); rst.awaitNoPrimary(); @@ -43,5 +43,4 @@ var admin = mongos.getDB('admin'); mongos.setSlaveOk(true); assert.eq(1, admin.foo.findOne().a); - })(); |