diff options
author | Benety Goh <benety@mongodb.com> | 2020-10-08 10:40:22 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-10-08 16:47:54 +0000 |
commit | 41c9c00daed2b32357befec5b5902aef21b5d08e (patch) | |
tree | cdd3f4a8bdfd256b6d1c2a3369fee756ed6ffa8f | |
parent | 70efbd4fbad2183ec1f503efef2669e5698bada3 (diff) | |
download | mongo-41c9c00daed2b32357befec5b5902aef21b5d08e.tar.gz |
SERVER-51430 update log message search in recovery_wt_cache_full.js to look for oplog application completion
-rw-r--r-- | jstests/noPassthrough/recovery_wt_cache_full.js | 9 |
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(); |