Commit 45667761 authored by caojianlin's avatar caojianlin

HazelcastClusterNodeInfo communication has big delay.

Using getHostString() to benefit from not attempting a reverse lookup.
Or will cause very big delay if the ip address doese not have configured
host name.
parent dd0f2440
......@@ -45,6 +45,7 @@ public class HazelcastClusterNodeInfo implements ClusterNodeInfo {
public HazelcastClusterNodeInfo(Member member, Long joinedTime) {
hostname = member.getSocketAddress().getHostName();
hostname = member.getSocketAddress().getHostString();
nodeID = NodeID.getInstance(StringUtils.getBytes(member.getUuid()));
this.joinedTime = joinedTime;
seniorMember = ClusterManager.getSeniorClusterMember().equals(StringUtils.getBytes(member.getUuid()));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment