You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Woody Anderson (JIRA)" <ji...@apache.org> on 2010/05/22 22:23:16 UTC

[jira] Created: (ZOOKEEPER-778) ability to add a watch on a setData or create call

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.


[jira] Commented: (ZOOKEEPER-778) ability to add a watch on a setData or create call

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ 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.