You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Enrico Olivelli (JIRA)" <ji...@apache.org> on 2017/02/16 13:18:41 UTC

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

Enrico Olivelli created ZOOKEEPER-2697:
------------------------------------------

             Summary: 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.

My proposal is to add a new boolean configuration options "gracefulClose" (defaults to "false") which adds a logic similar to testableWaitForShutdown at the end of "close" methd.

I would like to add a new configuration property in order to make third party libraries which only call "close" but have a "configurabile" ZooKeeper instance to leverage this new feature



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