summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXueruiFa <xuerui.fa@mongodb.com>2021-08-09 21:08:38 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-08-10 17:47:02 +0000
commit384542592c718d696b5c36d3cc67021c0844bb09 (patch)
treec7760f05f9606d2426e8530dc0e70b525c5b33fa
parentbf244ea14aa8b5c178d09a33e505520f45ce7b29 (diff)
downloadmongo-384542592c718d696b5c36d3cc67021c0844bb09.tar.gz
SERVER-58135: Increase numInitialSyncAttempts for JS tests with chaining disabled
-rw-r--r--jstests/replsets/initial_sync_chooses_correct_sync_source.js2
-rw-r--r--jstests/replsets/stepdown_needs_electable_secondary.js2
-rw-r--r--jstests/replsets/update_commit_point_from_sync_source_ignores_term.js7
3 files changed, 6 insertions, 5 deletions
diff --git a/jstests/replsets/initial_sync_chooses_correct_sync_source.js b/jstests/replsets/initial_sync_chooses_correct_sync_source.js
index 04f0bebd0b7..6e61d6dc123 100644
--- a/jstests/replsets/initial_sync_chooses_correct_sync_source.js
+++ b/jstests/replsets/initial_sync_chooses_correct_sync_source.js
@@ -41,7 +41,6 @@ const restartAndWaitForHeartbeats = (rst, initialSyncNode, setParameterOpts = {}
setParameterOpts['failpoint.initialSyncHangBeforeChoosingSyncSource'] =
tojson({mode: 'alwaysOn'});
setParameterOpts['failpoint.initialSyncHangBeforeCreatingOplog'] = tojson({mode: 'alwaysOn'});
- setParameterOpts['numInitialSyncAttempts'] = 1;
rst.restart(initialSyncNode, {
startClean: true,
@@ -83,7 +82,6 @@ const initialSyncNode = rst.add({
setParameter: {
'failpoint.initialSyncHangBeforeChoosingSyncSource': tojson({mode: 'alwaysOn'}),
'failpoint.initialSyncHangBeforeCreatingOplog': tojson({mode: 'alwaysOn'}),
- 'numInitialSyncAttempts': 1
}
});
primary.delayMessagesFrom(initialSyncNode, delayMillis);
diff --git a/jstests/replsets/stepdown_needs_electable_secondary.js b/jstests/replsets/stepdown_needs_electable_secondary.js
index 128c1297ef6..1fdb0bc8f43 100644
--- a/jstests/replsets/stepdown_needs_electable_secondary.js
+++ b/jstests/replsets/stepdown_needs_electable_secondary.js
@@ -32,7 +32,7 @@ var replTest = new ReplSetTest({
name: name,
nodes: 5,
nodeOptions: {
- setParameter: {logComponentVerbosity: tojson({replication: 2})},
+ setParameter: {logComponentVerbosity: tojson({replication: 2}), numInitialSyncAttempts: 25},
}
});
var nodes = replTest.nodeList();
diff --git a/jstests/replsets/update_commit_point_from_sync_source_ignores_term.js b/jstests/replsets/update_commit_point_from_sync_source_ignores_term.js
index 37065be798a..b0f0c6c3b1c 100644
--- a/jstests/replsets/update_commit_point_from_sync_source_ignores_term.js
+++ b/jstests/replsets/update_commit_point_from_sync_source_ignores_term.js
@@ -12,8 +12,11 @@ const dbName = "test";
const collName = "coll";
// Set up a ReplSetTest where nodes only sync one oplog entry at a time.
-const rst = new ReplSetTest(
- {nodes: 5, useBridge: true, nodeOptions: {setParameter: "bgSyncOplogFetcherBatchSize=1"}});
+const rst = new ReplSetTest({
+ nodes: 5,
+ useBridge: true,
+ nodeOptions: {setParameter: {bgSyncOplogFetcherBatchSize: 1, numInitialSyncAttempts: 25}}
+});
rst.startSet();
const config = rst.getReplSetConfig();
// Ban chaining and prevent elections.