From e141d191fce0176fbaaafb91d8eb5e127c8b25ed Mon Sep 17 00:00:00 2001 From: William Schultz Date: Fri, 5 Jun 2020 13:50:38 -0400 Subject: SERVER-48611 Use awaitLastOpCommitted instead of awaitReplication in speculative_majority_find.js (cherry picked from commit cbf2cb2cd7288b6b0aae866296d2c1f1acd344ad) --- jstests/replsets/speculative_majority_find.js | 4 ++-- 1 file 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({ -- cgit v1.2.1