summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Jesse Jiryu Davis <jesse@mongodb.com>2018-12-14 12:25:36 -0500
committerA. Jesse Jiryu Davis <jesse@mongodb.com>2019-01-09 18:21:36 -0500
commitf7d0b7102f90b9a2d13265245b1a848c5cdb27c7 (patch)
treedef26fd10445e0ef5f0142d484e7888ba87aae23
parent938f2b25a50a4c907b736ffe81546ae4c42e4f0c (diff)
downloadmongo-f7d0b7102f90b9a2d13265245b1a848c5cdb27c7.tar.gz
SERVER-38647 Avoid stepdown in backup_restore_rolling.js
-rw-r--r--jstests/noPassthrough/libs/backup_restore.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/jstests/noPassthrough/libs/backup_restore.js b/jstests/noPassthrough/libs/backup_restore.js
index f3618ec9673..48a3f8e6779 100644
--- a/jstests/noPassthrough/libs/backup_restore.js
+++ b/jstests/noPassthrough/libs/backup_restore.js
@@ -259,9 +259,12 @@ var BackupRestoreTest = function(options) {
});
var nodes = rst.startSet();
+ // Avoid stepdowns due to heavy workloads on slow machines.
+ var config = rst.getReplSetConfig();
+ config.settings = {electionTimeoutMillis: 60000};
// Initialize replica set using default timeout. This should give us sufficient time to
// allocate 1GB oplogs on slow test hosts with mmapv1.
- rst.initiate();
+ rst.initiate(config);
rst.awaitNodesAgreeOnPrimary();
var primary = rst.getPrimary();
var secondary = rst.getSecondary();