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:
parent
8b8488340f
commit
b9bd6ded04
@ -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();
|
||||
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user