You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Michi Mutsuzaki (JIRA)" <ji...@apache.org> on 2014/04/29 02:20:18 UTC

[jira] [Commented] (ZOOKEEPER-1920) Login thread is not shutdown when close the ClientCnxn

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

Michi Mutsuzaki commented on ZOOKEEPER-1920:
--------------------------------------------

Hi [~liuyang@huawei], would you like to provide a patch for this?

> Login thread is not shutdown when close the ClientCnxn
> ------------------------------------------------------
>
>                 Key: ZOOKEEPER-1920
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1920
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: java client
>    Affects Versions: 3.4.6
>            Reporter: liuyang
>            Priority: Minor
>
> A new ZooKeeper client will start three threads, the SendThread, EventThread and LoginThread. I belive that these threads will be shutdown after call the zk.close. I test that the SendThread and EventThread will be die,  but LoginThread is still alive. The stack is:
> "Thread-0" daemon prio=10 tid=0x00007ffcf0020000 nid=0x69c8 waiting on condition [0x00007ffd3cc25000]
>    java.lang.Thread.State: TIMED_WAITING (sleeping)
> 	at java.lang.Thread.sleep(Native Method)
> 	at org.apache.zookeeper.Login$1.run(Login.java:183)
> 	at java.lang.Thread.run(Thread.java:744)



--
This message was sent by Atlassian JIRA
(v6.2#6252)