diff options
author | William Schultz <william.schultz@mongodb.com> | 2020-02-25 22:56:45 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-02-26 04:37:04 +0000 |
commit | eb08c1db38cff911a07d51e5c1d6765ac9b83dfa (patch) | |
tree | bfa58785df097219a401efaef3c4985b6fbdab16 /jstests/replsets/initial_sync_applier_error.js | |
parent | 27363455aaba930778a5feff02b0b320d4b850af (diff) | |
download | mongo-eb08c1db38cff911a07d51e5c1d6765ac9b83dfa.tar.gz |
SERVER-45087 Check oplog commitment condition on replica set reconfig
create mode 100644 jstests/replsets/reconfig_waits_for_oplog_commitment_condition.js
create mode 100644 jstests/replsets/reconfig_waits_for_oplog_commitment_condition_when_leaving_force.js
Diffstat (limited to 'jstests/replsets/initial_sync_applier_error.js')
-rw-r--r-- | jstests/replsets/initial_sync_applier_error.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/replsets/initial_sync_applier_error.js b/jstests/replsets/initial_sync_applier_error.js index 70e3225a107..15093328213 100644 --- a/jstests/replsets/initial_sync_applier_error.js +++ b/jstests/replsets/initial_sync_applier_error.js @@ -28,7 +28,8 @@ assert.commandWorked(coll.insert({_id: 0, content: "hi"})); // Add a secondary node but make it hang after retrieving the last op on the source // but before copying databases. -var secondary = replSet.add({setParameter: "numInitialSyncAttempts=2"}); +var secondary = + replSet.add({setParameter: "numInitialSyncAttempts=2", rsConfig: {votes: 0, priority: 0}}); secondary.setSlaveOk(); let failPoint = configureFailPoint(secondary, 'initialSyncHangBeforeCopyingDatabases'); |