konrad
unread,Aug 30, 2012, 4:21:29 AM8/30/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Hazelcast
Hi folks,
After upgrading HZC to 2.3 (latest) IPv6 is no longer working with TCP
join. We have 2 major problems:
1. Without setting the new interface networkConfig.setPublicAddress(),
the system will pick one by itself. The selected address will be in
the format: ipv6%scope. When calling Member.getInetSocketAddress() we
are getting null. The reason for that is that Address class is trying
to add the scope again in getScopedHost() method and the MemberImpl
will get an UnknownHostException.
2. Ok, So we have set the PublicAddress. Now TCP IP joiner is no
longer works. For some reason nodes are not discovering each other
altought everything looks ok on the logs. Our nodes can come up with
any interface or with specific one. In non of these cases we are able
to work. It is important to mention that this was ok in 2.1 and 2.2.
This is the configuration we are using:
InetAddress bindInet = InetAddress.getByName(bindInterface);
if (bindInet.isAnyLocalAddress()) {
config.setProperty("hazelcast.socket.bind.any", "true");
interfacesConfig.setEnabled(false); // will use
0.0.0.0 / ::1
networkConfig.setPublicAddress(Which.serverAddress()); //
Some public IP
} else {
config.setProperty("hazelcast.socket.bind.any", "false");
interfacesConfig.setEnabled(true);
Collection<String> inters = new LinkedList<String>();
inters.add(bindInterface);
interfacesConfig.setInterfaces(inters);
networkConfig.setPublicAddress(bindInterface);
}
We are using tcpIpConfig.addAddress(); to specify potential members to
join.
Here are the logs:
First member:
Aug 30, 2012 10:59:13 AM com.hazelcast.impl.AddressPicker
INFO: Interfaces is enabled, trying to pick one address matching to
one of: [2001:420:44ff:b5:250:56ff:fead:6295]
Aug 30, 2012 10:59:13 AM com.hazelcast.impl.AddressPicker
INFO: Picked Address[2001:420:44ff:b5:250:56ff:fead:6295%2]:5801,
using socket ServerSocket[addr=/2001:420:44ff:b5:250:56ff:fead:
6295,localport=5801], bind any local is false
Aug 30, 2012 10:59:13 AM com.hazelcast.impl.AddressPicker
INFO: Using public address: Address[2001:420:44ff:b5:250:56ff:fead:
6295]:5801
Aug 30, 2012 10:59:13 AM com.hazelcast.system
INFO: [2001:420:44ff:b5:250:56ff:fead:6295]:5801 [PNW_GWFW_20]
Hazelcast Community Edition 2.3 (20120828) starting at
Address[2001:420:44ff:b5:250:56ff:fead:6295]:5801
Aug 30, 2012 10:59:13 AM com.hazelcast.system
INFO: [2001:420:44ff:b5:250:56ff:fead:6295]:5801 [PNW_GWFW_20]
Copyright (C) 2008-2012 Hazelcast.com
Aug 30, 2012 10:59:13 AM com.hazelcast.impl.LifecycleServiceImpl
INFO: [2001:420:44ff:b5:250:56ff:fead:6295]:5801 [PNW_GWFW_20]
Address[2001:420:44ff:b5:250:56ff:fead:6295]:5801 is STARTING
Aug 30, 2012 10:59:13 AM com.hazelcast.impl.TcpIpJoiner
INFO: [2001:420:44ff:b5:250:56ff:fead:6295]:5801 [PNW_GWFW_20]
Connecting to possible member: Address[2001:420:44ff:b5:250:56ff:fead:
6295]:5701
Aug 30, 2012 10:59:14 AM com.hazelcast.impl.TcpIpJoiner
INFO: [2001:420:44ff:b5:250:56ff:fead:6295]:5801 [PNW_GWFW_20]
Members [1] {
Member [2001:420:44ff:b5:250:56ff:fead:6295]:5801 this
}
Aug 30, 2012 10:59:14 AM com.hazelcast.impl.LifecycleServiceImpl
INFO: [2001:420:44ff:b5:250:56ff:fead:6295]:5801 [PNW_GWFW_20]
Address[2001:420:44ff:b5:250:56ff:fead:6295]:5801 is STARTED
Aug 30, 2012 10:59:14 AM com.hazelcast.impl.PartitionManager
INFO: [2001:420:44ff:b5:250:56ff:fead:6295]:5801 [PNW_GWFW_20]
Initializing cluster partition table first arrangement...
Member 2:
Aug 30, 2012 11:17:03 AM com.hazelcast.impl.AddressPicker
INFO: Interfaces is enabled, trying to pick one address matching to
one of: [2001:420:44ff:b5:250:56ff:fead:6295]
Aug 30, 2012 11:17:03 AM com.hazelcast.impl.AddressPicker
INFO: Picked Address[2001:420:44ff:b5:250:56ff:fead:6295%2]:5701,
using socket ServerSocket[addr=/2001:420:44ff:b5:250:56ff:fead:
6295,localport=5701], bind any local is false
Aug 30, 2012 11:17:03 AM com.hazelcast.impl.AddressPicker
INFO: Using public address: Address[2001:420:44ff:b5:250:56ff:fead:
6295]:5701
Aug 30, 2012 11:17:03 AM com.hazelcast.system
INFO: [2001:420:44ff:b5:250:56ff:fead:6295]:5701 [PNW_GWFW_20]
Hazelcast Community Edition 2.3 (20120828) starting at
Address[2001:420:44ff:b5:250:56ff:fead:6295]:5701
Aug 30, 2012 11:17:03 AM com.hazelcast.system
INFO: [2001:420:44ff:b5:250:56ff:fead:6295]:5701 [PNW_GWFW_20]
Copyright (C) 2008-2012 Hazelcast.com
Aug 30, 2012 11:17:03 AM com.hazelcast.impl.LifecycleServiceImpl
INFO: [2001:420:44ff:b5:250:56ff:fead:6295]:5701 [PNW_GWFW_20]
Address[2001:420:44ff:b5:250:56ff:fead:6295]:5701 is STARTING
Aug 30, 2012 11:17:03 AM com.hazelcast.impl.TcpIpJoiner
INFO: [2001:420:44ff:b5:250:56ff:fead:6295]:5701 [PNW_GWFW_20]
Connecting to possible member: Address[2001:420:44ff:b5:250:56ff:fead:
6295]:5801
Aug 30, 2012 11:17:04 AM com.hazelcast.impl.TcpIpJoiner
INFO: [2001:420:44ff:b5:250:56ff:fead:6295]:5701 [PNW_GWFW_20]
Members [1] {
Member [2001:420:44ff:b5:250:56ff:fead:6295]:5701 this
}
Aug 30, 2012 11:17:04 AM com.hazelcast.impl.LifecycleServiceImpl
INFO: [2001:420:44ff:b5:250:56ff:fead:6295]:5701 [PNW_GWFW_20]
Address[2001:420:44ff:b5:250:56ff:fead:6295]:5701 is STARTED
Aug 30, 2012 11:17:04 AM com.hazelcast.impl.PartitionManager
INFO: [2001:420:44ff:b5:250:56ff:fead:6295]:5701 [PNW_GWFW_20]
Initializing cluster partition table first arrangement...
As you can see each member is trying to connect the other.