summaryrefslogtreecommitdiff
path: root/jstests
diff options
context:
space:
mode:
authorSpencer T Brody <spencer@mongodb.com>2017-02-24 14:44:12 -0500
committerSpencer T Brody <spencer@mongodb.com>2017-02-24 17:36:21 -0500
commit02dbff056f913f77df2bfe5558897bc9a229ae4f (patch)
treeaeb217ac505f90c0bb93b2a58107548d679057c4 /jstests
parentef78254a2bb56df2df0d346e9405df1cffb83d52 (diff)
downloadmongo-02dbff056f913f77df2bfe5558897bc9a229ae4f.tar.gz
SERVER-28050 Reconnect connection after stepdown in read_committed_stale_history.js
Diffstat (limited to 'jstests')
-rw-r--r--jstests/replsets/read_committed_stale_history.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/jstests/replsets/read_committed_stale_history.js b/jstests/replsets/read_committed_stale_history.js
index a7dac2006dc..1129e0118d9 100644
--- a/jstests/replsets/read_committed_stale_history.js
+++ b/jstests/replsets/read_committed_stale_history.js
@@ -118,6 +118,7 @@
assert.commandWorked(res);
}
rst.waitForState(nodes[0], ReplSetTest.State.SECONDARY);
+ reconnect(nodes[0]);
// At this point the former primary will attempt to go into rollback, but the
// 'rollbackHangBeforeStart' will prevent it from doing so.