You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@zookeeper.apache.org by "YuChenXing (Jira)" <ji...@apache.org> on 2025/02/26 01:57:00 UTC
[jira] [Commented] (ZOOKEEPER-4898) The incorrect usage of the subclass of ZooKeeperThread leads to the failure of exception handling
[ https://issues.apache.org/jira/browse/ZOOKEEPER-4898?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17930503#comment-17930503 ]
YuChenXing commented on ZOOKEEPER-4898:
---------------------------------------
I have submitted a Pull Request #2228 , and I hope it will be helpful.
> The incorrect usage of the subclass of ZooKeeperThread leads to the failure of exception handling
> -------------------------------------------------------------------------------------------------
>
> Key: ZOOKEEPER-4898
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-4898
> Project: ZooKeeper
> Issue Type: Improvement
> Components: leaderElection
> Environment: all operating system
> Reporter: YuChenXing
> Priority: Trivial
> Labels: pull-request-available
> Attachments: image-2025-02-26-09-43-37-299.png, image-2025-02-26-09-48-32-165.png
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> WorkerSender inherits from ZooKeeperThread. When using WorkerSender, a WorkerSender thread is created first, followed by the creation of a new thread where WorkerSender is passed as a task. At this point, the ExceptionHandler in ZooKeeperThread does not take effect. !image-2025-02-26-09-48-32-165.png!!image-2025-02-26-09-43-37-299.png!
--
This message was sent by Atlassian Jira
(v8.20.10#820010)