summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavi Vetriselvan <pvselvan@umich.edu>2020-05-14 16:29:18 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-05-14 23:10:40 +0000
commit790afa3c2b130794c819845372b44a3fb8368097 (patch)
treef421d69e1aa76e2f2eeed6d90c18f379148d307c
parentaebf6a5d01a28c7d5a3a4ee68d11c2e150291131 (diff)
downloadmongo-790afa3c2b130794c819845372b44a3fb8368097.tar.gz
SERVER-48099 Increase shutdownTimeout in election_handoff_via_signal.js
-rw-r--r--jstests/replsets/election_handoff_via_signal.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/jstests/replsets/election_handoff_via_signal.js b/jstests/replsets/election_handoff_via_signal.js
index 58df0cc852e..0b9682fe6f3 100644
--- a/jstests/replsets/election_handoff_via_signal.js
+++ b/jstests/replsets/election_handoff_via_signal.js
@@ -9,7 +9,13 @@ load("jstests/replsets/libs/election_handoff.js");
const testName = "election_handoff_via_signal";
const numNodes = 3;
-const rst = ReplSetTest({name: testName, nodes: numNodes});
+// Initiate with a higher 5 second shutdownTimeout instead of the default 100 ms to allow enough
+// time for nodes to grab the RSTL while stepping down during shutdown.
+const rst = ReplSetTest({
+ name: testName,
+ nodes: numNodes,
+ nodeOptions: {setParameter: "shutdownTimeoutMillisForSignaledShutdown=5000"}
+});
const nodes = rst.nodeList();
rst.startSet();