You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Lokesh Jain (JIRA)" <ji...@apache.org> on 2019/05/13 10:44:00 UTC

[jira] [Commented] (RATIS-540) LeaderElection#shutdown does not stop the daemon

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

Lokesh Jain commented on RATIS-540:
-----------------------------------

Took a second look at the code. The daemon thread should be closed as lifecycle is transitioned to CLOSING state. It finishes execution eventually after this change.

> LeaderElection#shutdown does not stop the daemon
> ------------------------------------------------
>
>                 Key: RATIS-540
>                 URL: https://issues.apache.org/jira/browse/RATIS-540
>             Project: Ratis
>          Issue Type: Bug
>            Reporter: Lokesh Jain
>            Assignee: Lokesh Jain
>            Priority: Major
>
> LeaderElection#shutdown does not stop the daemon. This leads to multiple leader election threads accumulating in the JVM as a daemon is added in every leader election. It ultimately leads to JVM shutdown.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)