You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/04/11 13:42:48 UTC

[jira] [Commented] (ZOOKEEPER-2697) Handle graceful stop of ZookKeeper client

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

ASF GitHub Bot commented on ZOOKEEPER-2697:
-------------------------------------------

GitHub user eolivelli opened a pull request:

    https://github.com/apache/zookeeper/pull/222

    ZOOKEEPER-2697 Handle graceful stop of ZookKeeper client

    Add a ZooKeeper.close(int timeout) method which waits for internal resources to be released

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/eolivelli/zookeeper ZOOKEEPER-2697-close-with-timeout

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/zookeeper/pull/222.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #222
    
----
commit 509f5a396496e409827bfed8a73a7bb2e5b62534
Author: eolivelli <eo...@apache.org>
Date:   2017-04-11T13:41:06Z

    ZOOKEEPER-2697 Handle graceful stop of ZookKeeper client

----


> Handle graceful stop of ZookKeeper client
> -----------------------------------------
>
>                 Key: ZOOKEEPER-2697
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2697
>             Project: ZooKeeper
>          Issue Type: Improvement
>          Components: java client
>    Affects Versions: 3.4.9
>            Reporter: Enrico Olivelli
>            Priority: Critical
>
> As seen in ZOOKEEPER-1394 I would like to have the "close"  which waits for all background activities to  finish.
> In tests the method "testableWaitForShutdown" is used.
> We can add a new ZooKeeper.close(int tineout)  method which will act as testableWaitForShutdown, joining all support threads.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)