[
https://issues.apache.org/jira/browse/ZOOKEEPER-4946?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ivan Khanas reassigned ZOOKEEPER-4946:
--------------------------------------
Assignee: Ivan Khanas
> 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.5.10, 3.6.4, 3.7.2, 3.8.4, 3.9.3
> Reporter: zhanglu153
> Assignee: Ivan Khanas
> Priority: Critical
> Attachments: 0001-Login.patch
>
>
> 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)