Skip to content

Commit f2dd217

Browse files
committed
SERVER-42562 Increase election timeout for recover_prepared_transactions_startup_secondary_application.js
1 parent bdc23b9 commit f2dd217

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

jstests/replsets/recover_prepared_transactions_startup_secondary_application.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ load("jstests/core/txns/libs/prepare_helpers.js");
1212

1313
const replTest = new ReplSetTest({nodes: 2});
1414
const nodes = replTest.startSet();
15-
replTest.initiate();
15+
16+
// Increase the election timeout to 24 hours so that we do not accidentally trigger an election
17+
// while the secondary is restarting.
18+
replTest.initiateWithHighElectionTimeout();
1619

1720
const primary = replTest.getPrimary();
1821
let secondary = replTest.getSecondary();

0 commit comments

Comments
 (0)