diff options
author | Luis Osta <luis.osta@mongodb.com> | 2021-12-09 21:12:43 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-12-10 20:48:07 +0000 |
commit | dec388494b652488259072cf61fd987af3fa8470 (patch) | |
tree | bab08cc70e592991ac799df21260ba10533e7413 | |
parent | d3a93ec67a3cf149434bc5c112ecd7d71bdd89b5 (diff) | |
download | mongo-dec388494b652488259072cf61fd987af3fa8470.tar.gz |
SERVER-45149 Add replset commands to prevent replsetDown timeout
(cherry picked from commit fb20ae3c42cc5724d74baaeab089db4e3a650d2c)
-rw-r--r-- | jstests/sharding/txn_two_phase_commit_failover.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/jstests/sharding/txn_two_phase_commit_failover.js b/jstests/sharding/txn_two_phase_commit_failover.js index 1e86c8a3cf3..aa06d28eb5c 100644 --- a/jstests/sharding/txn_two_phase_commit_failover.js +++ b/jstests/sharding/txn_two_phase_commit_failover.js @@ -156,7 +156,10 @@ const runTest = function(sameNodeStepsUpAfterFailover) { // Induce the coordinator primary to step down. assert.commandWorked( - coordPrimary.adminCommand({replSetStepDown: stepDownSecs, force: true})); + coordPrimary.adminCommand({replSetStepDown: ReplSetTest.kForeverSecs, force: true})); + assert.commandWorked(coordPrimary.adminCommand({replSetFreeze: 0})); + assert.commandWorked(coordPrimary.adminCommand({replSetStepUp: 1})); + assert.commandWorked(coordPrimary.adminCommand({ configureFailPoint: failpointData.failpoint, mode: "off", |