You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Paul Millar (JIRA)" <ji...@apache.org> on 2016/08/17 16:35:21 UTC

[jira] [Created] (ZOOKEEPER-2515) SessionTrackerImpl non-daemon thread slow to shutdown

Paul Millar created ZOOKEEPER-2515:
--------------------------------------

             Summary: SessionTrackerImpl non-daemon thread slow to shutdown
                 Key: ZOOKEEPER-2515
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2515
             Project: ZooKeeper
          Issue Type: Bug
    Affects Versions: 3.4.6
            Reporter: Paul Millar


While calling SessionTrackerImpl#shutdown does result in the thread eventually stopping, it takes up to expirationInterval (3 seconds, by default) for the thread to finally die.

Since the thread is not a daemon, this delays the shutdown of any application that makes use of ZooKeeper.

I believe the issue is simple to fix: if the shutdown method notified the thread from within object's monitor then this issue will be resolved.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)