You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Zhaohui Yu (JIRA)" <ji...@apache.org> on 2015/11/10 00:37:11 UTC
[jira] [Created] (ZOOKEEPER-2319) UnresolvedAddressException cause
the QuorumCnxManager.Listener exit
Zhaohui Yu created ZOOKEEPER-2319:
-------------------------------------
Summary: UnresolvedAddressException cause the QuorumCnxManager.Listener exit
Key: ZOOKEEPER-2319
URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2319
Project: ZooKeeper
Issue Type: Bug
Affects Versions: 3.4.6
Reporter: Zhaohui Yu
Priority: Critical
Given three nodes, the leader on 2, but some issue with this machine, so I shutdown this machine, and change the host name to another machine.
Then I start the node in the new machine, but the new node can not join.
I found the the 1 and 3's Listener thread exit.
With the code of Listener's run method:
I don't think place the receiveConnection call in the try is a good idea.
@Override
public void run() {
while((!shutdown) && (numRetries < 3)){
try {
// bind and accept
receiveConnection(client);
} catch (IOException e) {
}
}
//
}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)