0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

SERVER-48103 Initiate reconfig_only_counts_*.js tests with a high election timeout

This commit is contained in:
William Schultz 2020-05-11 15:46:31 -04:00 committed by Evergreen Agent
parent 8b8488340f
commit b9bd6ded04
2 changed files with 10 additions and 2 deletions

View File

@ -20,7 +20,7 @@ var replTest = new ReplSetTest({
useBridge: true
});
var nodes = replTest.startSet();
replTest.initiate();
replTest.initiateWithHighElectionTimeout();
var primary = replTest.getPrimary();
var secondary = replTest.getSecondary();

View File

@ -19,7 +19,15 @@ var replTest = new ReplSetTest({
]
});
var nodes = replTest.startSet();
replTest.initiate();
// Stopping replication on secondaries can be very slow with a high election timeout. Set a small
// oplog getMore timeout so the test runs faster.
nodes.forEach(node => {
assert.commandWorked(
node.adminCommand({configureFailPoint: 'setSmallOplogGetMoreMaxTimeMS', mode: 'alwaysOn'}));
});
replTest.initiateWithHighElectionTimeout();
var primary = replTest.getPrimary();
// Do a write that should not be able to replicate to node1 since we stopped replication.