Bookkeeper
  1. Bookkeeper
  2. BOOKKEEPER-242

Bookkeeper not able to connect other zookeeper when shutdown the zookeeper server where the BK has connected.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 4.0.0
    • Fix Version/s: 4.1.0
    • Component/s: bookkeeper-server
    • Labels:
      None

      Description

      Scenario :
      1. Start three zookeeper cluster.
      2. start three bookKeeper.
      3. shutdown zookeeper server where bookkeeper has connected.

      Expected Result:
      bookkeeper should be able to connect other zookeeper

      Actual Result :
      All three bookkeepers retry to connect zookeeper node which has been shutdown.

      BookKeeper log for Retry :

       
      2012-04-25 13:35:15,319 - WARN  [main-EventThread:Bookie$2@456] - ZK client has been disconnected to the ZK server!
      2012-04-25 13:35:17,194 - INFO  [main-SendThread(HOST-10-18-40-91:2181):ClientCnxn$SendThread@933] - Opening socket connection to server HOST-10-18-40-91/10.18.40.91:2181
      2012-04-25 13:35:17,196 - WARN  [main-SendThread(HOST-10-18-40-91:2181):ClientCnxn$SendThread@1063] - Session 0x136e87b50ce0002 for server null, unexpected error, closing socket connection and attempting reconnect
      java.net.ConnectException: Connection refused
      	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
      	at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567)
      	at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:264)
      	at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1041)
      2012-04-25 13:35:19,125 - INFO  [main-SendThread(HOST-10-18-40-91:2181):ClientCnxn$SendThread@933] - Opening socket connection to server HOST-10-18-40-91/10.18.40.91:2181
      2012-04-25 13:35:19,126 - WARN  [main-SendThread(HOST-10-18-40-91:2181):ClientCnxn$SendThread@1063] - Session 0x136e87b50ce0002 for server null, unexpected error, closing socket connection and attempting reconnect
      java.net.ConnectException: Connection refused
      	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
      	at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567)
      	at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:264)
      	at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1041)
      2012-04-25 13:35:20,276 - INFO  [main-SendThread(HOST-10-18-40-91:2181):ClientCnxn$SendThread@933] - Opening socket connection to server HOST-10-18-40-91/10.18.40.91:2181
      2012-04-25 13:35:20,277 - WARN  [main-SendThread(HOST-10-18-40-91:2181):ClientCnxn$SendThread@1063] - Session 0x136e87b50ce0002 for server null, unexpected error, closing socket connection and attempting reconnect
      java.net.ConnectException: Connection refused
      	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
      	at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567)
      	at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:264)
      	at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1041)
      
      
      1. BK-242.diff
        3 kB
        Sijie Guo
      2. BK-242.diff_v2
        3 kB
        Sijie Guo

        Activity

        Surendra Singh Lilhore created issue -
        Surendra Singh Lilhore made changes -
        Field Original Value New Value
        Description Scenario :
        1. Start three zookeeper cluster.
        2. start three bookKeeper.
        3. shutdown zookeeper server where bookkeeper has connected.

        Expected Result:
        bookkeeper should be able to connect other zookeeper

        Actual Result :
        All three bookkeepers retry to connect zookeeper node which has been shutdown.



        BookKeeper log for Retry :
        {noformat)
        2012-04-25 13:35:15,319 - WARN [main-EventThread:Bookie$2@456] - ZK client has been disconnected to the ZK server!
        2012-04-25 13:35:17,194 - INFO [main-SendThread(HOST-10-18-40-91:2181):ClientCnxn$SendThread@933] - Opening socket connection to server HOST-10-18-40-91/10.18.40.91:2181
        2012-04-25 13:35:17,196 - WARN [main-SendThread(HOST-10-18-40-91:2181):ClientCnxn$SendThread@1063] - Session 0x136e87b50ce0002 for server null, unexpected error, closing socket connection and attempting reconnect
        java.net.ConnectException: Connection refused
        at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
        at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567)
        at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:264)
        at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1041)
        2012-04-25 13:35:19,125 - INFO [main-SendThread(HOST-10-18-40-91:2181):ClientCnxn$SendThread@933] - Opening socket connection to server HOST-10-18-40-91/10.18.40.91:2181
        2012-04-25 13:35:19,126 - WARN [main-SendThread(HOST-10-18-40-91:2181):ClientCnxn$SendThread@1063] - Session 0x136e87b50ce0002 for server null, unexpected error, closing socket connection and attempting reconnect
        java.net.ConnectException: Connection refused
        at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
        at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567)
        at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:264)
        at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1041)
        2012-04-25 13:35:20,276 - INFO [main-SendThread(HOST-10-18-40-91:2181):ClientCnxn$SendThread@933] - Opening socket connection to server HOST-10-18-40-91/10.18.40.91:2181
        2012-04-25 13:35:20,277 - WARN [main-SendThread(HOST-10-18-40-91:2181):ClientCnxn$SendThread@1063] - Session 0x136e87b50ce0002 for server null, unexpected error, closing socket connection and attempting reconnect
        java.net.ConnectException: Connection refused
        at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
        at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567)
        at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:264)
        at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1041)

        {noformat}
        Scenario :
        1. Start three zookeeper cluster.
        2. start three bookKeeper.
        3. shutdown zookeeper server where bookkeeper has connected.

        Expected Result:
        bookkeeper should be able to connect other zookeeper

        Actual Result :
        All three bookkeepers retry to connect zookeeper node which has been shutdown.



        BookKeeper log for Retry :

        {noformat}
        2012-04-25 13:35:15,319 - WARN [main-EventThread:Bookie$2@456] - ZK client has been disconnected to the ZK server!
        2012-04-25 13:35:17,194 - INFO [main-SendThread(HOST-10-18-40-91:2181):ClientCnxn$SendThread@933] - Opening socket connection to server HOST-10-18-40-91/10.18.40.91:2181
        2012-04-25 13:35:17,196 - WARN [main-SendThread(HOST-10-18-40-91:2181):ClientCnxn$SendThread@1063] - Session 0x136e87b50ce0002 for server null, unexpected error, closing socket connection and attempting reconnect
        java.net.ConnectException: Connection refused
        at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
        at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567)
        at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:264)
        at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1041)
        2012-04-25 13:35:19,125 - INFO [main-SendThread(HOST-10-18-40-91:2181):ClientCnxn$SendThread@933] - Opening socket connection to server HOST-10-18-40-91/10.18.40.91:2181
        2012-04-25 13:35:19,126 - WARN [main-SendThread(HOST-10-18-40-91:2181):ClientCnxn$SendThread@1063] - Session 0x136e87b50ce0002 for server null, unexpected error, closing socket connection and attempting reconnect
        java.net.ConnectException: Connection refused
        at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
        at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567)
        at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:264)
        at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1041)
        2012-04-25 13:35:20,276 - INFO [main-SendThread(HOST-10-18-40-91:2181):ClientCnxn$SendThread@933] - Opening socket connection to server HOST-10-18-40-91/10.18.40.91:2181
        2012-04-25 13:35:20,277 - WARN [main-SendThread(HOST-10-18-40-91:2181):ClientCnxn$SendThread@1063] - Session 0x136e87b50ce0002 for server null, unexpected error, closing socket connection and attempting reconnect
        java.net.ConnectException: Connection refused
        at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
        at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567)
        at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:264)
        at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1041)

        {noformat}
        Sijie Guo made changes -
        Attachment BK-242.diff [ 12525998 ]
        Sijie Guo made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Assignee Sijie Guo [ hustlmsp ]
        Fix Version/s 4.1.0 [ 12319145 ]
        Ivan Kelly made changes -
        Priority Major [ 3 ] Blocker [ 1 ]
        Sijie Guo made changes -
        Attachment BK-242.diff_v2 [ 12526104 ]
        Ivan Kelly made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ivan Kelly made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Sijie Guo
            Reporter:
            Surendra Singh Lilhore
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development