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-477) Ability to turn off Zk Watches in Curator Framework
Date Tue, 25 Sep 2018 07:41:00 GMT


ASF GitHub Bot commented on CURATOR-477:

Github user ramaraochavali commented on the issue:
    @dragonsinth sorry. Added one more commit for exists check also. can you PTAL?

> Ability to turn off Zk Watches in Curator Framework
> ---------------------------------------------------
>                 Key: CURATOR-477
>                 URL:
>             Project: Apache Curator
>          Issue Type: Improvement
>          Components: Framework
>    Affects Versions: 4.0.1
>            Reporter: Rama Chavali
>            Priority: Major
> In our use case, we use *{{TreeCache}}* to get Zk Data periodically. We start *{{TreeCache}}* read
data and close it. In this use case, The {{ZkWatchManager}} of {{ZooKeeper}} class keeps
growing for every TreeCache operation because new {{TreeNode}} objects are created and added
there leading to a memory leak. Also since we do not want the Watcher to periodically watch,
this creates unnecessary background operations.
> Can we introduce a builder flag in CuratorFramework's Builder some thing called "createZkWatches"
that we can use to turn the watchers off? The default would be set to true to retain the current

This message was sent by Atlassian JIRA

View raw message