diff options
author | Moustafa Maher <m.maher@10gen.com> | 2021-04-29 01:19:06 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-04-29 23:07:54 +0000 |
commit | 0d97b041970929e7e56caa42ee8837cec92d2264 (patch) | |
tree | 3508368450bd271faed556cfb298624da9cb9543 /jstests/replsets/dont_read_oplog_hole_on_step_up.js | |
parent | 15fb9ff89f2074704735c0a8629d0013b530747b (diff) | |
download | mongo-0d97b041970929e7e56caa42ee8837cec92d2264.tar.gz |
SERVER-55703 Update getDefaultRWConcern
Diffstat (limited to 'jstests/replsets/dont_read_oplog_hole_on_step_up.js')
-rw-r--r-- | jstests/replsets/dont_read_oplog_hole_on_step_up.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/jstests/replsets/dont_read_oplog_hole_on_step_up.js b/jstests/replsets/dont_read_oplog_hole_on_step_up.js index eff887799a1..1c0130c0017 100644 --- a/jstests/replsets/dont_read_oplog_hole_on_step_up.js +++ b/jstests/replsets/dont_read_oplog_hole_on_step_up.js @@ -29,6 +29,10 @@ const nodes = rst.startSet(); // take so much time that the second cannot succeed. rst.initiate(); +// The default WC is majority and this test can't satisfy majority writes. +assert.commandWorked(rst.getPrimary().adminCommand( + {setDefaultRWConcern: 1, defaultWriteConcern: {w: 1}, writeConcern: {w: "majority"}})); + const oldPrimary = nodes[0]; const newPrimary = nodes[1]; const secondary = rst.add({rsConfig: {priority: 0}}); |