zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ZOOKEEPER-2319) UnresolvedAddressException cause the QuorumCnxManager.Listener exit
Date Fri, 25 Aug 2017 01:08:00 GMT

    [ https://issues.apache.org/jira/browse/ZOOKEEPER-2319?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16141016#comment-16141016
] 

ASF GitHub Bot commented on ZOOKEEPER-2319:
-------------------------------------------

GitHub user maoling opened a pull request:

    https://github.com/apache/zookeeper/pull/348

    ZOOKEEPER-2319:UnresolvedAddressException cause the QuorumCnxManager.Listener exit

    more details in [JIRA](https://issues.apache.org/jira/browse/ZOOKEEPER-2319)

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/maoling/zookeeper ZOOKEEPER-2319

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/zookeeper/pull/348.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #348
    
----
commit 5eb38e038fa555d471ec3ca7fb4a42e5df66263d
Author: maoling <maoling199210191@sina.com>
Date:   2017-08-25T01:04:15Z

    ZOOKEEPER-2319:UnresolvedAddressException cause the QuorumCnxManager.Listener exit

----


> 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
>             Fix For: 3.5.4, 3.6.0
>
>
> 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 think we should catch UnresolvedAddressException to avoid the Listener exit.
> {noformat}
> @Override
>         public void run() {
>            
>             while((!shutdown) && (numRetries < 3)){
>                 try {
>                    // bind and accept
>                         receiveConnection(client);
>                   
>                 } catch (IOException e) {
>                     
>                 }
>             }
>             //
>         }
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message