Skip to content

Commit b2c6f31

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 6dcb196 commit b2c6f31

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

0 commit comments

Comments
 (0)