summaryrefslogtreecommitdiff
path: root/jstests/replsets/rollback_with_coalesced_txn_table_updates_during_oplog_application.js
diff options
context:
space:
mode:
authorMoustafa Maher <m.maher@10gen.com>2021-05-07 01:52:21 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-05-07 23:19:52 +0000
commit1cc903338ac28154fb6aaea1b2e6f00760e8682d (patch)
tree3de82f2c0790e4af6811779108a02dcda1027057 /jstests/replsets/rollback_with_coalesced_txn_table_updates_during_oplog_application.js
parentf8fbeb7e49303088e6a9cf5e8e6e7ec1b4cf7938 (diff)
downloadmongo-1cc903338ac28154fb6aaea1b2e6f00760e8682d.tar.gz
SERVER-55703 Update getDefaultRWConcern to return the implicit default if there is no CWWC
Diffstat (limited to 'jstests/replsets/rollback_with_coalesced_txn_table_updates_during_oplog_application.js')
-rw-r--r--jstests/replsets/rollback_with_coalesced_txn_table_updates_during_oplog_application.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/jstests/replsets/rollback_with_coalesced_txn_table_updates_during_oplog_application.js b/jstests/replsets/rollback_with_coalesced_txn_table_updates_during_oplog_application.js
index 39ceaa77713..f5d622c66c5 100644
--- a/jstests/replsets/rollback_with_coalesced_txn_table_updates_during_oplog_application.js
+++ b/jstests/replsets/rollback_with_coalesced_txn_table_updates_during_oplog_application.js
@@ -42,6 +42,10 @@ function runTest(crashAfterRollbackTruncation) {
const ns = "test.retryable_write_partial_rollback";
assert.commandWorked(
primary.getCollection(ns).insert({_id: 0, counter: 0}, {writeConcern: {w: 5}}));
+ // The default WC is majority and this test can't satisfy majority writes.
+ assert.commandWorked(primary.adminCommand(
+ {setDefaultRWConcern: 1, defaultWriteConcern: {w: 1}, writeConcern: {w: "majority"}}));
+ rst.awaitReplication();
const [secondary1, secondary2, secondary3, secondary4] = rst.getSecondaries();