You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Andor Molnar (JIRA)" <ji...@apache.org> on 2018/06/25 10:35:00 UTC

[jira] [Commented] (ZOOKEEPER-2407) EventThread in ClientCnxn can't be closed when SendThread exits because of auth failed during reconnection

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

Andor Molnar commented on ZOOKEEPER-2407:
-----------------------------------------

Hi [~haitao-tony]

Do you think we can close this Jira, since the linked (which potentially duplicates this) has already been resolved?

> EventThread in ClientCnxn can't be closed when SendThread exits because of auth failed during reconnection
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-2407
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2407
>             Project: ZooKeeper
>          Issue Type: Bug
>    Affects Versions: 3.5.1
>            Reporter: sunhaitao
>            Assignee: sunhaitao
>            Priority: Major
>             Fix For: 3.6.0, 3.5.5
>
>         Attachments: zookeeper-2407.patch
>
>
> 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)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)