diff --git a/buildSrc/src/main/java/org/elasticsearch/gradle/testclusters/ElasticsearchCluster.java b/buildSrc/src/main/java/org/elasticsearch/gradle/testclusters/ElasticsearchCluster.java index 20d9025c389..70a51a24f70 100644 --- a/buildSrc/src/main/java/org/elasticsearch/gradle/testclusters/ElasticsearchCluster.java +++ b/buildSrc/src/main/java/org/elasticsearch/gradle/testclusters/ElasticsearchCluster.java @@ -301,7 +301,10 @@ public class ElasticsearchCluster implements TestClusterConfiguration, Named { } if (firstNode == null) { firstNode = node; - firstNode.start(); + if (node.getVersion().before("6.5.0")) { + // We need to start the first node early to be able to provide unicast.hosts + firstNode.start(); + } } } }