curator-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (CURATOR-107) Regarding large number of watch count
Date Wed, 21 May 2014 12:49:38 GMT


ASF GitHub Bot commented on CURATOR-107:

GitHub user domwong opened a pull request:

    Curator locks leaving dangling watches

    As per . I've seen this in our services
    The issue is because the code is using exists() call rather than getData() for creating
a watch for lock. exists() creates a watch regardless of whether the node exists or not, getData()
will only create the watch if node exists

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

    $ git pull master

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

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

    This closes #7
commit 8a94985c07b3e6f74ac1a2935af008cbdb649410
Author: Dominic Wong <>
Date:   2014-05-21T12:20:55Z

    Lock is leaving dangling watchers for nodes that don't exist.

commit c9716499642b2dd4a0d77e5df6f9b84e8dfc90d0
Author: Dominic Wong <>
Date:   2014-05-21T12:40:39Z

    Catch no node exception

commit ac57e11b34bb2970775b385f5a1e94bccd287232
Author: Dominic Wong <>
Date:   2014-05-21T12:45:54Z

    No need for null check


> Regarding large number of watch count
> -------------------------------------
>                 Key: CURATOR-107
>                 URL:
>             Project: Apache Curator
>          Issue Type: Bug
>          Components: Recipes
>    Affects Versions: 2.4.1, 2.4.2
>         Environment: ZooKeeper 3.4.6
>            Reporter: Hyun Sik Kang
>              Labels: locks
>             Fix For: 2.5.0
> It's about issue that zookeeper's watch count is being increased.
> I wrote issue on zookeeper mailing list but I couldn't get cool answer yet.
> Please share any opinion with us if you have an idea..
> Refer to this article.
> I've used following code for getting and releasing lock
> try {
>  lock.acquire(...);
> } finally {
>  lock.release();
> }
> Please check if I misunderstood how to use curator properly.
> Thank you.

This message was sent by Atlassian JIRA

View raw message