summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Russotto <matthew.russotto@mongodb.com>2021-09-10 12:34:18 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-11-17 21:18:32 +0000
commit9fd34b6ed6c9d090ca3c6b0d338d688cda7cbc21 (patch)
treef3f98ab46b8d7fc11d02469399e81c9c3a10748b
parent507877a76dadbabd0155f4df2d099739de84d101 (diff)
downloadmongo-9fd34b6ed6c9d090ca3c6b0d338d688cda7cbc21.tar.gz
SERVER-59871 startup_recovery_for_restore_restarts.js needs to make sure a checkpoint happens after failpoint
(cherry picked from commit 882849fe205ea0b1e22557c228da64a8492cc110)
-rw-r--r--jstests/replsets/startup_recovery_for_restore_restarts.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/jstests/replsets/startup_recovery_for_restore_restarts.js b/jstests/replsets/startup_recovery_for_restore_restarts.js
index d14f15140b2..648696a0296 100644
--- a/jstests/replsets/startup_recovery_for_restore_restarts.js
+++ b/jstests/replsets/startup_recovery_for_restore_restarts.js
@@ -131,6 +131,10 @@ rst.start(restoreNode,
assert.soon(() => { // Can't use checklog because we can't connect to the mongo in startup mode.
return rawMongoProgramOutput().search("hangAfterCollectionInserts fail point enabled") !== -1;
});
+// We need to make sure we get a checkpoint after the failpoint is hit, so we clear the output after
+// hitting it. Occasionally we'll miss a checkpoint as a result of clearing the output, but we'll
+// get another one a second later.
+clearRawMongoProgramOutput();
assert.soon(() => {
return rawMongoProgramOutput().search("Completed unstable checkpoint.") !== -1;
});