Fix double start of test cluster

This commit is contained in:
Alpar Torok 2019-10-03 18:12:22 +03:00
parent 9c7b58900c
commit 392013cf05
1 changed files with 4 additions and 1 deletions

View File

@ -301,7 +301,10 @@ public class ElasticsearchCluster implements TestClusterConfiguration, Named {
} }
if (firstNode == null) { if (firstNode == null) {
firstNode = node; 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();
}
} }
} }
} }