diff options
-rw-r--r-- | jstests/noPassthrough/validate_out_of_order.js | 10 |
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"})); |