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

Enrico Olivelli commented on CURATOR-408:
-----------------------------------------

[~randgalt] OK
another question, ZooKeeper#close(int) is in 3.5.4-SNAPSHOT and Curator master 
is currently using 3.5.3-BETA, how can I resolve the problem ?

My first idea is to use 3.5.4-SNAPSHOT in the PR and wait for the release of 
3.5.4 for the merge on master
does this sound good to you ?

> Handle graceful close of ZookKeeper client waiting for all resources to be 
> released
> -----------------------------------------------------------------------------------
>
>                 Key: CURATOR-408
>                 URL: https://issues.apache.org/jira/browse/CURATOR-408
>             Project: Apache Curator
>          Issue Type: Improvement
>          Components: Client
>    Affects Versions: 3.4.0
>            Reporter: Enrico Olivelli
>            Assignee: Enrico Olivelli
>
> Ths idea is to leverage the new ZooKeeper#close(timeoutMs) method introduced 
> with ZOOKEEPER-2697.
> This new method waits for the internal threads to finish, this way the client 
> is sure that all internal resources handled but low-level ZooKeeper client 
> have been released.
> This is very useful in tests because the user can wait for the test 
> environment to be cleared.
> In some cases you want to return from the 'close' method as soon as 
> possibile. In ZooKeeper a new specific method as been added in order to let 
> the user ask for a specific behaviour.



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

Reply via email to