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

Login thread is not shutdown when close the ClientCnxn

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.4.6
    • None
    • java client
    • None

    Description

      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)

      Attachments

        Issue Links

          Activity

            People

              rakeshr Rakesh Radhakrishnan
              liuyang@huawei liuyang
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated: