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

EventThread in ClientCnxn can't be closed when SendThread exits because of auth failed during reconnection

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.5.1
    • None
    • None
    • None

    Description

      EventThread in ClientCnxn can't be closed when SendThread exits because of auth failed during reconnection.
      for send thread if it is in authfailed state, the send thread exits,but the event thread is still running.

      observation:
      use jstack tho check the thread running they find the send thread no longer exists but event thread is still threre
      even when we call zookeeper.close(),the eventthread is still there.

      Stack trace:
      sun.misc.Unsafe.park(Native Method)
      java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
      java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
      java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442)
      org.apache.zookeeper.ClientCnxn$EventThread.run(ClientCnxn.java:514)

      Attachments

        1. zookeeper-2407.patch
          1 kB
          sunhaitao

        Issue Links

          Activity

            People

              haitao-tony sunhaitao
              haitao-tony sunhaitao
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: