Test: force local transport in ZenDiscoveryTests.testHandleNodeJoin_incompatibleMinVersion
Otherwise we ignore the join request due to a transport address mismatch instead of failing it.
This commit is contained in:
parent
3171f52461
commit
3084bed194
|
@ -226,6 +226,7 @@ public class ZenDiscoveryTests extends ElasticsearchIntegrationTest {
|
||||||
public void testHandleNodeJoin_incompatibleMinVersion() {
|
public void testHandleNodeJoin_incompatibleMinVersion() {
|
||||||
Settings nodeSettings = Settings.settingsBuilder()
|
Settings nodeSettings = Settings.settingsBuilder()
|
||||||
.put("discovery.type", "zen") // <-- To override the local setting if set externally
|
.put("discovery.type", "zen") // <-- To override the local setting if set externally
|
||||||
|
.put("node.mode", "local") // <-- force local transport so we can fake a network address
|
||||||
.build();
|
.build();
|
||||||
String nodeName = internalCluster().startNode(nodeSettings, Version.V_2_0_0);
|
String nodeName = internalCluster().startNode(nodeSettings, Version.V_2_0_0);
|
||||||
ZenDiscovery zenDiscovery = (ZenDiscovery) internalCluster().getInstance(Discovery.class, nodeName);
|
ZenDiscovery zenDiscovery = (ZenDiscovery) internalCluster().getInstance(Discovery.class, nodeName);
|
||||||
|
|
Loading…
Reference in New Issue