summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--jstests/noPassthrough/recovery_wt_cache_full.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/jstests/noPassthrough/recovery_wt_cache_full.js b/jstests/noPassthrough/recovery_wt_cache_full.js
index 5e763e30c9b..803399b5f6d 100644
--- a/jstests/noPassthrough/recovery_wt_cache_full.js
+++ b/jstests/noPassthrough/recovery_wt_cache_full.js
@@ -90,9 +90,16 @@ const actualCacheSizeGB = assert.commandWorked(secondary.adminCommand({getCmdLin
jsTestLog('Secondary was restarted with a storage cache size of ' + actualCacheSizeGB + ' GB.');
assert.eq(1, actualCacheSizeGB);
-checkLog.contains(secondary, 'Starting recovery oplog application');
jsTestLog('Applying updates on secondary ' + secondary.host + ' during recovery.');
+// Log ID 21536 - Completed oplog application for recovery.
+checkLog.containsJson(secondary, 21536, {
+ numBatches: 1,
+ numOpsApplied: function(numOpsApplied) {
+ return numOpsApplied >= numDocs * numUpdates;
+ }
+});
+
// This ensures that the node is able to complete recovery and transition to SECONDARY.
rst.awaitReplication();