diff options
author | George Wangensteen <george.wangensteen@mongodb.com> | 2020-11-20 18:38:44 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-11-23 18:37:55 +0000 |
commit | 829617a5c30b6aa20f36950a165ea35e2c17dc2d (patch) | |
tree | cf4a5ee538c2f2d4d2382de4eb90ad3e34fa8bf4 | |
parent | 17145e88ad22c4f4097c03be8bbc42125e36ccf9 (diff) | |
download | mongo-829617a5c30b6aa20f36950a165ea35e2c17dc2d.tar.gz |
SERVER-52884 Remove race in reconstruct_prepared_transactions_initial_sync.js
-rw-r--r-- | jstests/replsets/reconstruct_prepared_transactions_initial_sync.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/jstests/replsets/reconstruct_prepared_transactions_initial_sync.js b/jstests/replsets/reconstruct_prepared_transactions_initial_sync.js index b72dd806295..7afb8416c05 100644 --- a/jstests/replsets/reconstruct_prepared_transactions_initial_sync.js +++ b/jstests/replsets/reconstruct_prepared_transactions_initial_sync.js @@ -126,6 +126,8 @@ assert.commandWorked(secondary.adminCommand( // Wait for the secondary to complete initial sync. replTest.awaitSecondaryNodes(); +// Wait for the commit point to advance past the "prepare" oplog entry for transaction four. +replTest.awaitLastOpCommitted(); jsTestLog("Initial sync completed"); |