Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CURATOR-477] add support for configuring Zk Watches #277

Conversation

ramaraochavali
Copy link
Contributor

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.

In this PR, Made the createZkWatches configurable in the Builder, so that use cases like ours can set it to false. The default is true, retaining the current behaviour.

@Randgalt
Copy link
Member

Please open a Jira issue for this. See here - https://cwiki.apache.org/confluence/display/CURATOR/Submitting+Pull+Requests - then maybe @dragonsinth can take a look at this.

@dragonsinth
Copy link
Contributor

@Randgalt the use case makes sense, but there's actually no TreeCache changes in this PR, it's all Framework stuff.

@ramaraochavali ramaraochavali changed the title add support for configuring Zk Watches [CURATOR-477] add support for configuring Zk Watches Aug 20, 2018
@ramaraochavali
Copy link
Contributor Author

@Randgalt Created JIRA issue https://issues.apache.org/jira/browse/CURATOR-477. Please let me know if any thing else needs to be done. Please review and let me know if any changes are required.

@ramaraochavali
Copy link
Contributor Author

@Randgalt @dragonsinth on a second thought, I think just cleaner to it at the TreeCache level. So closing this PR and opening a fresh PR for it with correct branch name as well. The correct PR is #278

@ramaraochavali ramaraochavali deleted the feature/configurable_zk_watchers branch August 20, 2018 06:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants