Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-2319

UnresolvedAddressException cause the QuorumCnxManager.Listener exit

    Details

      Description

      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.

      @Override
              public void run() {
                 
                  while((!shutdown) && (numRetries < 3)){
                      try {
                         // bind and accept
                              receiveConnection(client);
                        
                      } catch (IOException e) {
                          
                      }
                  }
                  //
              }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hanm Michael Han
                Reporter:
                yuyijq Zhaohui Yu
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m