diff options
author | Samy Lanka <samy.lanka@gmail.com> | 2018-06-22 13:15:26 -0400 |
---|---|---|
committer | Samy Lanka <samy.lanka@gmail.com> | 2018-08-07 10:49:10 -0400 |
commit | 350f731558ed0489ee56d9a36ba988ceb3c7ba6c (patch) | |
tree | 6232c08b6d6d26b39db4646317598919b718e52f | |
parent | c9a2e9b4427f8ffe37667f6ed7d8ec50d8dfba68 (diff) | |
download | mongo-350f731558ed0489ee56d9a36ba988ceb3c7ba6c.tar.gz |
SERVER-35754 Avoid network errors in stopSet() in catchup_takeover_one_high_priority.js
(cherry picked from commit 323cee61a4ef26ef127b917cf1ae386c816979c7)
-rw-r--r-- | jstests/replsets/catchup_takeover_one_high_priority.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/jstests/replsets/catchup_takeover_one_high_priority.js b/jstests/replsets/catchup_takeover_one_high_priority.js index e9f4960cdeb..575407c19d2 100644 --- a/jstests/replsets/catchup_takeover_one_high_priority.js +++ b/jstests/replsets/catchup_takeover_one_high_priority.js @@ -92,5 +92,8 @@ replSet.waitForState(2, ReplSetTest.State.PRIMARY, 30 * 1000); jsTestLog('node 2 performed priority takeover and is now primary'); + // Wait until the old primary steps down so the connections won't be closed during stopSet(). + replSet.waitForState(0, ReplSetTest.State.SECONDARY, replSet.kDefaultTimeoutMS); + replSet.stopSet(); })(); |