[
https://issues.apache.org/jira/browse/ZOOKEEPER-442?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13179718#comment-13179718
]
[email protected] commented on ZOOKEEPER-442:
---------------------------------------------------------
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/3364/#review4186
-----------------------------------------------------------
src/java/main/org/apache/zookeeper/ZooKeeper.java
<https://reviews.apache.org/r/3364/#comment9433>
is it needed? would be good to be sure before we commit
src/java/main/org/apache/zookeeper/ZooKeeper.java
<https://reviews.apache.org/r/3364/#comment9435>
it would be good to document here why we are calling the async version
(that this is the only way to ensure that all pending watches have been
processed before notifying that that watch was removed successfully).
src/java/main/org/apache/zookeeper/ZooKeeper.java
<https://reviews.apache.org/r/3364/#comment9434>
ditto
- Patrick
On 2012-01-04 09:41:43, Daniel Gómez Ferro wrote:
bq.
bq. -----------------------------------------------------------
bq. This is an automatically generated e-mail. To reply, visit:
bq. https://reviews.apache.org/r/3364/
bq. -----------------------------------------------------------
bq.
bq. (Updated 2012-01-04 09:41:43)
bq.
bq.
bq. Review request for zookeeper and Benjamin Reed.
bq.
bq.
bq. Summary
bq. -------
bq.
bq. Added APIs to remove watches that are not needed anymore. If the removal
completes successfully it is guaranteed that the watcher won't be notified.
bq.
bq. With the current semantics if two clients remove watches on a znode at the
same time the watch is triggered, one could remove it successfully while the
other could receive the notification first.
bq.
bq.
bq. This addresses bug ZOOKEEPER-442.
bq. https://issues.apache.org/jira/browse/ZOOKEEPER-442
bq.
bq.
bq. Diffs
bq. -----
bq.
bq. src/java/main/org/apache/zookeeper/ClientCnxn.java 6c25e40
bq. src/java/main/org/apache/zookeeper/KeeperException.java 7c10d2c
bq. src/java/main/org/apache/zookeeper/Watcher.java 36c7b5b
bq. src/java/main/org/apache/zookeeper/ZooDefs.java c7f1b20
bq. src/java/main/org/apache/zookeeper/ZooKeeper.java e82eaa0
bq. src/java/main/org/apache/zookeeper/server/DataTree.java 757a572
bq. src/java/main/org/apache/zookeeper/server/FinalRequestProcessor.java
336827a
bq. src/java/main/org/apache/zookeeper/server/PrepRequestProcessor.java
1a80d74
bq. src/java/main/org/apache/zookeeper/server/Request.java c6a2249
bq. src/java/main/org/apache/zookeeper/server/WatchManager.java 0e7c815
bq. src/java/main/org/apache/zookeeper/server/ZKDatabase.java 2842803
bq. src/java/test/org/apache/zookeeper/test/RemoveWatchesTest.java
PRE-CREATION
bq. src/zookeeper.jute d24e145
bq.
bq. Diff: https://reviews.apache.org/r/3364/diff
bq.
bq.
bq. Testing
bq. -------
bq.
bq. Added unit test that checks client side semantics.
bq.
bq.
bq. Thanks,
bq.
bq. Daniel
bq.
bq.
> 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: New Feature
> Reporter: Benjamin Reed
> Assignee: Daniel Gómez Ferro
> Priority: Critical
> Fix For: 3.5.0
>
> Attachments: ZOOKEEPER-442.patch, ZOOKEEPER-442.patch,
> ZOOKEEPER-442.patch, ZOOKEEPER-442.patch, ZOOKEEPER-442.patch,
> ZOOKEEPER-442.patch, ZOOKEEPER-442.patch
>
>
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira