From 510d7d84b2f4f22d47e7d6f42ecba9c7e371c713 Mon Sep 17 00:00:00 2001 From: Alpar Torok Date: Thu, 3 Oct 2019 16:31:22 +0300 Subject: [PATCH] bwc tests: make sure first node is only started once --- .../elasticsearch/gradle/testclusters/ElasticsearchCluster.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 f9673502efb..20d9025c389 100644 --- a/buildSrc/src/main/java/org/elasticsearch/gradle/testclusters/ElasticsearchCluster.java +++ b/buildSrc/src/main/java/org/elasticsearch/gradle/testclusters/ElasticsearchCluster.java @@ -293,7 +293,6 @@ public class ElasticsearchCluster implements TestClusterConfiguration, Named { if (firstNode == null) { node.defaultConfig.put("discovery.zen.ping.unicast.hosts", "[]"); } else { - firstNode.start(); firstNode.waitForAllConditions(); node.defaultConfig.put("discovery.zen.ping.unicast.hosts", "[\"" + firstNode.getTransportPortURI() + "\"]"); } @@ -302,6 +301,7 @@ public class ElasticsearchCluster implements TestClusterConfiguration, Named { } if (firstNode == null) { firstNode = node; + firstNode.start(); } } }