Skip to content

Commit 5e6cf8a

Browse files
committed
SERVER-42454 Wait for node to find appropriate sync source before disabling failpoint in do_not_advance_commit_point_beyond_last_applied_term.js
1 parent 9e60c8c commit 5e6cf8a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

jstests/replsets/do_not_advance_commit_point_beyond_last_applied_term.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ assert.eq(0, nodeE.getDB(dbName)[collName].find({term: 3}).itcount());
9595
jsTest.log("Node E switches its sync source to B and replicates the stale branch of term 2.");
9696
nodeE.disconnect([nodeA, nodeC, nodeD]);
9797
nodeB.reconnect(nodeE);
98+
rst.awaitSyncSource(nodeE, nodeB);
9899
assert.commandWorked(
99100
nodeE.adminCommand({configureFailPoint: "stopReplProducerOnDocument", mode: "off"}));
100101
assert.soon(() => {

0 commit comments

Comments
 (0)