summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Schultz <william.schultz@mongodb.com>2020-06-05 13:50:38 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-06-17 20:01:58 +0000
commite141d191fce0176fbaaafb91d8eb5e127c8b25ed (patch)
treeffed6420f8d67a6345f2036f6a9a25e488c0c1f9
parent04594d981c0530baf5c56eb22e0c3e86d47c3bbb (diff)
downloadmongo-e141d191fce0176fbaaafb91d8eb5e127c8b25ed.tar.gz
SERVER-48611 Use awaitLastOpCommitted instead of awaitReplication in speculative_majority_find.js
(cherry picked from commit cbf2cb2cd7288b6b0aae866296d2c1f1acd344ad)
-rw-r--r--jstests/replsets/speculative_majority_find.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/replsets/speculative_majority_find.js b/jstests/replsets/speculative_majority_find.js
index 485d6a2cdaa..6f040d920d9 100644
--- a/jstests/replsets/speculative_majority_find.js
+++ b/jstests/replsets/speculative_majority_find.js
@@ -59,7 +59,7 @@ let res = primaryDB.runCommand({
assert.commandFailedWithCode(res, ErrorCodes.MaxTimeMSExpired);
restartServerReplication(secondary);
-replTest.awaitReplication();
+replTest.awaitLastOpCommitted();
jsTestLog("Do a speculative majority read that should succeed.");
res = primaryDB.runCommand({
@@ -143,7 +143,7 @@ assert.commandFailedWithCode(res, ErrorCodes.MaxTimeMSExpired);
// Let the previous write majority commit.
restartServerReplication(secondary);
-replTest.awaitReplication();
+replTest.awaitLastOpCommitted();
jsTestLog("Do a speculative majority read with 'afterClusterTime' that should succeed.");
res = primaryDB.runCommand({