summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2022-03-04 18:50:50 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-03-04 19:38:06 +0000
commit45d387c249f63c1479b539c2f491cd9d302d3cba (patch)
tree0a3656e59bc45730606c66fd652ddf465f741f2c
parent6b8b2cda683be89ddf76c5afc58bace66bb33e99 (diff)
downloadmongo-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
-rw-r--r--jstests/noPassthrough/initial_sync_aborts_two_phase_index_builds_hide_index.js6
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,
+ },
+ }
]
});