summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamy Lanka <samy.lanka@mongodb.com>2022-01-31 17:17:25 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-02-11 16:25:56 +0000
commitf39eb49d94a6e0db48727bee0b833d92b04f615e (patch)
tree1ebc4de886d77b7bff92d7d44b8c001b7cb0614e
parent6493c0ae8096f22b44581b7851c1f243232b5666 (diff)
downloadmongo-f39eb49d94a6e0db48727bee0b833d92b04f615e.tar.gz
SERVER-63121 add more logging to abort_in_progress_transactions_on_step_up.js
(cherry picked from commit 539ce23761785a90ac28da2ab40203ea0fdf59b1)
-rw-r--r--jstests/replsets/abort_in_progress_transactions_on_step_up.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/jstests/replsets/abort_in_progress_transactions_on_step_up.js b/jstests/replsets/abort_in_progress_transactions_on_step_up.js
index 5e579056df5..5c38ad983b6 100644
--- a/jstests/replsets/abort_in_progress_transactions_on_step_up.js
+++ b/jstests/replsets/abort_in_progress_transactions_on_step_up.js
@@ -82,8 +82,13 @@ const startOpTime = testDB.getSiblingDB("local").oplog.rs.findOne({ts: commitOpT
jsTestLog("Wait for the new primary to block on fail point.");
stopReplProducerOnDocumentFailPoint.wait();
-jsTestLog("Wait for the new primary to apply the first op of transaction.");
-assert.soon(() => getLastOpTime(newPrimary) >= startOpTime);
+jsTestLog("Wait for the new primary to apply the first op of transaction at timestamp: " +
+ tojson(startOpTime));
+assert.soon(() => {
+ const lastOpTime = getLastOpTime(newPrimary);
+ jsTestLog("Current lastOpTime on the new primary: " + tojson(lastOpTime));
+ return lastOpTime >= startOpTime;
+});
// Now the transaction should be in-progress on newPrimary.
txnTableEntry = getTxnTableEntry(newTestDB);