Skip to content

Commit 7919b66

Browse files
DISCOVERY: 0s Initial State Timeout in Tests (#35481)
* DISCOVERY: 0s Initial State Timeout in Tests * Don't wait for initial state even with a single node, otherwise the loop writing the discovery file causes that single node to wait for its own transport.ports file for 30s. * Closes #35456
1 parent cbb16d5 commit 7919b66

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
@@ -343,7 +343,7 @@ class ClusterFormationTasks {
343343
if (minimumMasterNodes > 0) {
344344
esConfig['discovery.zen.minimum_master_nodes'] = minimumMasterNodes
345345
}
346-
if (node.config.numNodes > 1) {
346+
if (minimumMasterNodes > 1) {
347347
// don't wait for state.. just start up quickly
348348
// this will also allow new and old nodes in the BWC case to become the master
349349
esConfig['discovery.initial_state_timeout'] = '0s'

0 commit comments

Comments
 (0)