diff options
author | Benety Goh <benety@mongodb.com> | 2022-03-04 18:50:50 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-03-04 19:38:06 +0000 |
commit | 45d387c249f63c1479b539c2f491cd9d302d3cba (patch) | |
tree | 0a3656e59bc45730606c66fd652ddf465f741f2c /jstests | |
parent | 6b8b2cda683be89ddf76c5afc58bace66bb33e99 (diff) | |
download | mongo-45d387c249f63c1479b539c2f491cd9d302d3cba.tar.gz |
SERVER-64202 Use a 3-node replica set to avoid having the primary stepdown if it can't see a majority of the replica set
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/noPassthrough/initial_sync_aborts_two_phase_index_builds_hide_index.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/jstests/noPassthrough/initial_sync_aborts_two_phase_index_builds_hide_index.js b/jstests/noPassthrough/initial_sync_aborts_two_phase_index_builds_hide_index.js index f1e2eae9caf..9759626d5bc 100644 --- a/jstests/noPassthrough/initial_sync_aborts_two_phase_index_builds_hide_index.js +++ b/jstests/noPassthrough/initial_sync_aborts_two_phase_index_builds_hide_index.js @@ -21,6 +21,12 @@ const rst = new ReplSetTest({ priority: 0, }, }, + { + // Disallow elections on secondary. + rsConfig: { + priority: 0, + }, + } ] }); |