You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Patrick Hunt (JIRA)" <ji...@apache.org> on 2008/09/08 23:05:44 UTC

[jira] Created: (ZOOKEEPER-138) c client watcher objects can lose events

c client watcher objects can lose events
----------------------------------------

                 Key: ZOOKEEPER-138
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-138
             Project: Zookeeper
          Issue Type: Bug
          Components: c client
    Affects Versions: 3.0.0
            Reporter: Patrick Hunt
            Assignee: Mahadev konar
             Fix For: 3.0.0


if a single watcher (A) is registered on a single node for both a getdata and exists watch the second watch event may be lost:

1) getdata("node", A)
2) setdata("node"...)
3) exists("node", A)
4) delete("node"...)

if watch events for 2 is processed on the client (zookeeper.java, zkwatcher) after 3 completes then the zkwatcher process event method will clear the watch and the subsequent operation's (4) event will be ignored

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


[jira] Assigned: (ZOOKEEPER-138) c client watcher objects can lose events

Posted by "Patrick Hunt (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ZOOKEEPER-138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Patrick Hunt reassigned ZOOKEEPER-138:
--------------------------------------

    Assignee: Benjamin Reed  (was: Patrick Hunt)

Ben said he would take a look at this as part of the autoreset of watches work he's doing. I'm concerned that this change would be pretty late for 3.0, perhaps we should consider moving to 3.1? (not an incompatible change afaik).


> c client watcher objects can lose events
> ----------------------------------------
>
>                 Key: ZOOKEEPER-138
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-138
>             Project: Zookeeper
>          Issue Type: Bug
>          Components: c client
>    Affects Versions: 3.0.0
>            Reporter: Patrick Hunt
>            Assignee: Benjamin Reed
>             Fix For: 3.0.0
>
>
> if a single watcher (A) is registered on a single node for both a getdata and exists watch the second watch event may be lost:
> 1) getdata("node", A)
> 2) setdata("node"...)
> 3) exists("node", A)
> 4) delete("node"...)
> if watch events for 2 is processed on the client (zookeeper.java, zkwatcher) after 3 completes then the zkwatcher process event method will clear the watch and the subsequent operation's (4) event will be ignored

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


[jira] Resolved: (ZOOKEEPER-138) c client watcher objects can lose events

Posted by "Patrick Hunt (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ZOOKEEPER-138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Patrick Hunt resolved ZOOKEEPER-138.
------------------------------------

      Resolution: Fixed
    Hadoop Flags: [Reviewed]

Committed revision 706834. (as part of ZOOKEEPER-23)

> c client watcher objects can lose events
> ----------------------------------------
>
>                 Key: ZOOKEEPER-138
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-138
>             Project: Zookeeper
>          Issue Type: Bug
>          Components: c client
>    Affects Versions: 3.0.0
>            Reporter: Patrick Hunt
>            Assignee: Benjamin Reed
>             Fix For: 3.0.0
>
>
> if a single watcher (A) is registered on a single node for both a getdata and exists watch the second watch event may be lost:
> 1) getdata("node", A)
> 2) setdata("node"...)
> 3) exists("node", A)
> 4) delete("node"...)
> if watch events for 2 is processed on the client (zookeeper.java, zkwatcher) after 3 completes then the zkwatcher process event method will clear the watch and the subsequent operation's (4) event will be ignored

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


[jira] Assigned: (ZOOKEEPER-138) c client watcher objects can lose events

Posted by "Patrick Hunt (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ZOOKEEPER-138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Patrick Hunt reassigned ZOOKEEPER-138:
--------------------------------------

    Assignee: Patrick Hunt  (was: Mahadev konar)

> c client watcher objects can lose events
> ----------------------------------------
>
>                 Key: ZOOKEEPER-138
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-138
>             Project: Zookeeper
>          Issue Type: Bug
>          Components: c client
>    Affects Versions: 3.0.0
>            Reporter: Patrick Hunt
>            Assignee: Patrick Hunt
>             Fix For: 3.0.0
>
>
> if a single watcher (A) is registered on a single node for both a getdata and exists watch the second watch event may be lost:
> 1) getdata("node", A)
> 2) setdata("node"...)
> 3) exists("node", A)
> 4) delete("node"...)
> if watch events for 2 is processed on the client (zookeeper.java, zkwatcher) after 3 completes then the zkwatcher process event method will clear the watch and the subsequent operation's (4) event will be ignored

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