diff options
Diffstat (limited to 'jstests/replsets/stepdown_catch_up_opt.js')
-rw-r--r-- | jstests/replsets/stepdown_catch_up_opt.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/jstests/replsets/stepdown_catch_up_opt.js b/jstests/replsets/stepdown_catch_up_opt.js index 1e178f9ba6d..ffd103adc96 100644 --- a/jstests/replsets/stepdown_catch_up_opt.js +++ b/jstests/replsets/stepdown_catch_up_opt.js @@ -17,6 +17,10 @@ replTest.awaitSecondaryNodes(); var primary = replTest.getPrimary(); var secondary = replTest.getSecondary(); +// The default WC is majority and stopServerReplication will prevent satisfying any majority writes. +assert.commandWorked(primary.adminCommand( + {setDefaultRWConcern: 1, defaultWriteConcern: {w: 1}, writeConcern: {w: "majority"}})); + // Error codes we expect to see. // If the secondary is not caught up. |