Fixed the configuration of HZ for local tests to avoid multicast preferring tcp local address
This commit is contained in:
@@ -15,7 +15,7 @@ public class HazelcastInterceptHandler extends AbstractInterceptHandler {
|
||||
private static final Logger LOG = LoggerFactory.getLogger(HazelcastInterceptHandler.class);
|
||||
private final HazelcastInstance hz;
|
||||
|
||||
public HazelcastInterceptHandler (Server server){
|
||||
public HazelcastInterceptHandler(Server server){
|
||||
this.hz = server.getHazelcastInstance();
|
||||
}
|
||||
|
||||
|
||||
-3
@@ -21,9 +21,6 @@ import java.util.Properties;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
||||
/**
|
||||
* Created by mackristof on 13/05/2016.
|
||||
*/
|
||||
public class ServerIntegrationHazelcastHandlerInterceptorTest{
|
||||
private static final Logger LOG = LoggerFactory.getLogger(ServerIntegrationHazelcastHandlerInterceptorTest.class);
|
||||
|
||||
|
||||
@@ -3,8 +3,23 @@
|
||||
http://www.hazelcast.com/schema/config/hazelcast-config-3.5.xsd"
|
||||
xmlns="http://www.hazelcast.com/schema/config"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<properties>
|
||||
<property name="hazelcast.logging.type">log4j</property>
|
||||
</properties>
|
||||
|
||||
<network>
|
||||
<join><multicast enabled="true"/></join>
|
||||
<port auto-increment="true">5701</port>
|
||||
<join>
|
||||
<multicast enabled="false"/>
|
||||
<tcp-ip enabled="true">
|
||||
<interface>127.0.0.1</interface>
|
||||
</tcp-ip>
|
||||
</join>
|
||||
<interfaces enabled="true">
|
||||
<interface>127.0.0.*</interface>
|
||||
</interfaces>
|
||||
<ssl enabled="false"/>
|
||||
<socket-interceptor enabled="false"/>
|
||||
</network>
|
||||
|
||||
</hazelcast>
|
||||
Reference in New Issue
Block a user