[
https://issues.apache.org/jira/browse/ZOOKEEPER-442?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13040128#comment-13040128
]
Vitalii Tymchyshyn commented on ZOOKEEPER-442:
----------------------------------------------
My little comment on why I need this feature to ensure my usecase will work: My
application makes a job node and adds a watch on result node (unexisting, by
name). After some time it may decide that a job is no longer needed (e.g.
timeouted) and it removes job node and must unwatch result node. If it won't do
so, there will be watch leak - this watches will never be removed as job name
won't be reused and result will never be generated. Currently I issue "create
node/delete node" commands to fire the watch, but it takes processing power and
is ugly.
> need a way to remove watches that are no longer of interest
> -----------------------------------------------------------
>
> Key: ZOOKEEPER-442
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-442
> Project: ZooKeeper
> Issue Type: Improvement
> Reporter: Benjamin Reed
>
> currently the only way a watch cleared is to trigger it. we need a way to
> enumerate the outstanding watch objects, find watch events the objects are
> watching for, and remove interests in an event.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira