Skip to content

Commit 7c8a540

Browse files
committed
Do not set wait_for_joins_timeout on 7.x nodes
1 parent 6f5bb43 commit 7c8a540

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

buildSrc/src/main/groovy/org/elasticsearch/gradle/test/ClusterFormationTasks.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ class ClusterFormationTasks {
361361
if (node.nodeVersion.before("7.0.0") && minimumMasterNodes > 0) {
362362
esConfig['discovery.zen.minimum_master_nodes'] = minimumMasterNodes
363363
}
364-
if (esConfig.containsKey('discovery.zen.master_election.wait_for_joins_timeout') == false) {
364+
if (node.nodeVersion.before("7.0.0") && esConfig.containsKey('discovery.zen.master_election.wait_for_joins_timeout') == false) {
365365
// If a node decides to become master based on partial information from the pinging, don't let it hang for 30 seconds to correct
366366
// its mistake. Instead, only wait 5s to do another round of pinging.
367367
// This is necessary since we use 30s as the default timeout in REST requests waiting for cluster formation

0 commit comments

Comments
 (0)