zhanglu153 created ZOOKEEPER-4946:
-------------------------------------

             Summary: Login thread failed to shutdown successfully, causing 
SendThead to be blocked
                 Key: ZOOKEEPER-4946
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-4946
             Project: ZooKeeper
          Issue Type: Bug
          Components: server
    Affects Versions: 3.9.3, 3.8.4, 3.7.2, 3.6.4, 3.5.10
            Reporter: zhanglu153


Call org.apache.zookeeper.client.ZooKeeperSaslClient#shutdown method in 
sendThread to close the zooKeeperSaslClient, that is, shutdown Login thread. 
Although the t.interrupt method was called, the run method of the Login thread 
did not detect the thread being interrupted. For example, when the Login thread 
enters the while loop of reLogin, there may be a situation where the Login 
thread cannot interrupt.

This will cause the t.join method to remain blocked, resulting in the 
sendThread thread being blocked and unabled to complete execution. This may 
result in many zk requests being unable to be released, such as possible 
deadlocks, due to sendThread being blocked in lower versions of zk, such as 3.5 
and 3.6. Higher versions of zk, such as 3.8 and 3.9, have leaked sendThread 
threads.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to