[TEST] fixed unicast bw comp test configuration
The second internal node, when present, wasn't able to join the existing cluster due ti misconfigured unicast hosts, thus it would form its own cluster.
This commit is contained in:
parent
584d2c32dd
commit
feb3839f0f
|
@ -34,7 +34,7 @@ public class UnicastBackwardsCompatibilityTest extends ElasticsearchBackwardsCom
|
|||
return ImmutableSettings.builder()
|
||||
.put("transport.tcp.port", 9380 + nodeOrdinal)
|
||||
.put("discovery.zen.ping.multicast.enabled", false)
|
||||
.put("discovery.zen.ping.unicast.hosts", "localhost:9390,localhost:9391")
|
||||
.put("discovery.zen.ping.unicast.hosts", "localhost:9380,localhost:9381,localhost:9390,localhost:9391")
|
||||
.put(super.nodeSettings(nodeOrdinal))
|
||||
.build();
|
||||
}
|
||||
|
@ -44,13 +44,13 @@ public class UnicastBackwardsCompatibilityTest extends ElasticsearchBackwardsCom
|
|||
return ImmutableSettings.settingsBuilder()
|
||||
.put("transport.tcp.port", 9390 + nodeOrdinal)
|
||||
.put("discovery.zen.ping.multicast.enabled", false)
|
||||
.put("discovery.zen.ping.unicast.hosts", "localhost:9380,localhost:9381")
|
||||
.put("discovery.zen.ping.unicast.hosts", "localhost:9380,localhost:9381,localhost:9390,localhost:9391")
|
||||
.put(super.nodeSettings(nodeOrdinal))
|
||||
.build();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testUnicastDiscovery() throws Exception {
|
||||
public void testUnicastDiscovery() {
|
||||
ClusterHealthResponse healthResponse = client().admin().cluster().prepareHealth().get();
|
||||
assertThat(healthResponse.getNumberOfDataNodes(), equalTo(cluster().numDataNodes()));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue