summaryrefslogtreecommitdiff
path: root/jstests/replsets/collate_id.js
diff options
context:
space:
mode:
authorMoustafa Maher <m.maher@10gen.com>2021-04-29 01:19:06 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-04-29 23:07:54 +0000
commit0d97b041970929e7e56caa42ee8837cec92d2264 (patch)
tree3508368450bd271faed556cfb298624da9cb9543 /jstests/replsets/collate_id.js
parent15fb9ff89f2074704735c0a8629d0013b530747b (diff)
downloadmongo-0d97b041970929e7e56caa42ee8837cec92d2264.tar.gz
SERVER-55703 Update getDefaultRWConcern
Diffstat (limited to 'jstests/replsets/collate_id.js')
-rw-r--r--jstests/replsets/collate_id.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/jstests/replsets/collate_id.js b/jstests/replsets/collate_id.js
index e51a0ffcb88..9b0d77843b1 100644
--- a/jstests/replsets/collate_id.js
+++ b/jstests/replsets/collate_id.js
@@ -32,6 +32,10 @@ var secondary = replTest.getSecondary();
var secondaryDB = secondary.getDB("test");
var secondaryColl = secondaryDB.collate_id;
+// The default WC is majority and rsSyncApplyStop failpoint will prevent satisfying any majority
+// writes.
+assert.commandWorked(primary.adminCommand(
+ {setDefaultRWConcern: 1, defaultWriteConcern: {w: 1}, writeConcern: {w: "majority"}}));
// Stop the secondary from syncing. This will ensure that the writes on the primary get applied
// on the secondary in a large batch.
assert.commandWorked(