[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-778?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12884625#action_12884625
 ] 

Hudson commented on ZOOKEEPER-778:
----------------------------------

Integrated in ZooKeeper-trunk #864 (See 
[http://hudson.zones.apache.org/hudson/job/ZooKeeper-trunk/864/])
    

> ability to add a watch on a setData or create call
> --------------------------------------------------
>
>                 Key: ZOOKEEPER-778
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-778
>             Project: Zookeeper
>          Issue Type: Improvement
>          Components: c client, java client, server
>            Reporter: Woody Anderson
>            Priority: Minor
>
> It is often desirable to set a watch when creating a node or setting data on 
> a node. Currently, you have to add a watch after the create/set with another 
> api call, which incurs extra cost, and a window of unobserved state change.
> This would "seem" to be an easy addition to the server/client libs, but i'm 
> not sure if there are reasons this was never proposed or developed.
> I currently am most concerned with a data watch in these two scenarios, but i 
> would imagine other users might be interested in registering a children watch 
> immediately upon creation.
> This change would require adding new method signatures in the clients for 
> create and setData which took watchers. And some changes to the protocol, as 
> the SetDataRequest and CreateRequest objects would need watch flags.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to