diff options
author | Benety Goh <benety@mongodb.com> | 2016-04-21 15:16:43 -0400 |
---|---|---|
committer | Eric Milkie <milkie@10gen.com> | 2016-06-09 09:30:17 -0400 |
commit | 53ffe36bb87da7a1e5c9b17f09209213e072c1f3 (patch) | |
tree | 5ee42968ce7702b32e801d1996d990f35e89b5d3 | |
parent | 8fb5fafab548a5e1c222d1b4a27b845f0cc4226c (diff) | |
download | mongo-53ffe36bb87da7a1e5c9b17f09209213e072c1f3.tar.gz |
SERVER-23853 replsetprio1.js should wait for replication before stopping highest priority node
(cherry picked from commit 218ded6589ec11ad157812e369c8785e20670f6a)
-rw-r--r-- | jstests/replsets/replsetprio1.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/jstests/replsets/replsetprio1.js b/jstests/replsets/replsetprio1.js index a68bba37028..8b0c6b1cf64 100644 --- a/jstests/replsets/replsetprio1.js +++ b/jstests/replsets/replsetprio1.js @@ -18,6 +18,9 @@ // 2 should be master (give this a while to happen, as 0 will be elected, then demoted) replTest.waitForState(nodes[2], ReplSetTest.State.PRIMARY, 120000); + // Wait for election oplog entry to be replicated, to ensure 0 will vote for 1 after stopping 2. + replTest.awaitReplication(); + // kill 2, 1 should take over replTest.stop(2); |