summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Wlodarek <gregory.wlodarek@mongodb.com>2023-02-16 18:07:03 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-05-18 01:48:05 +0000
commit5e3fed8e90066e127307019766678266cd7216e5 (patch)
treea733ae36579be8ab9abb6d4aea5794bfade11134
parent74e04c5444bdcea243c1328ce0ae5cb969bf7003 (diff)
downloadmongo-v4.4.tar.gz
SERVER-74104 Disable journal flusher in validate_out_of_order.jsv4.4
(cherry picked from commit b1473f653d0bd8f6fd17c6e4cfbe6b291f4bc5b4)
-rw-r--r--jstests/noPassthrough/validate_out_of_order.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/jstests/noPassthrough/validate_out_of_order.js b/jstests/noPassthrough/validate_out_of_order.js
index f7e4fd7a975..bcbab1db2f8 100644
--- a/jstests/noPassthrough/validate_out_of_order.js
+++ b/jstests/noPassthrough/validate_out_of_order.js
@@ -4,12 +4,15 @@
*
* @tags: [
* requires_replication,
- * requires_wiredtiger
+ * requires_wiredtiger,
+ * requires_persistence
* ]
*/
(function() {
"use strict";
+load("jstests/libs/fail_point_util.js");
+
const rst = new ReplSetTest({nodes: 1});
rst.startSet();
rst.initiate();
@@ -22,6 +25,11 @@ for (let i = 0; i < 5; i++) {
assert.commandWorked(coll.insert({x: i}));
}
+// Disable the journal flusher for the remainder of the test so that it will not encounter the
+// out-of-order uassert.
+const journalFp = configureFailPoint(primary, "pauseJournalFlusherThread");
+journalFp.wait();
+
// Test record store out-of-order detection.
assert.commandWorked(
primary.adminCommand({configureFailPoint: "WTRecordStoreUassertOutOfOrder", mode: "alwaysOn"}));