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/initial_sync_drop_collection.js | |
parent | 15fb9ff89f2074704735c0a8629d0013b530747b (diff) | |
download | mongo-0d97b041970929e7e56caa42ee8837cec92d2264.tar.gz |
SERVER-55703 Update getDefaultRWConcern
Diffstat (limited to 'jstests/replsets/initial_sync_drop_collection.js')
-rw-r--r-- | jstests/replsets/initial_sync_drop_collection.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/jstests/replsets/initial_sync_drop_collection.js b/jstests/replsets/initial_sync_drop_collection.js index 4adfad01d18..9d82c45265f 100644 --- a/jstests/replsets/initial_sync_drop_collection.js +++ b/jstests/replsets/initial_sync_drop_collection.js @@ -27,6 +27,10 @@ var primaryColl = primaryDB[collName]; var secondaryColl = secondaryDB[collName]; var nss = primaryColl.getFullName(); +// 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"}})); + // This function adds data to the collection, restarts the secondary node with the given // parameters and setting the given failpoint, waits for the failpoint to be hit, // drops the collection, then disables the failpoint. It then optionally waits for the |