Fix double start of test cluster
This commit is contained in:
parent
9c7b58900c
commit
392013cf05
|
@ -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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue