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

Eyal leshem commented on ZOOKEEPER-2611:
----------------------------------------


I checked with debug prints the the write watch is actually removed. 
The current unit-tests didn't caught this bug - because they tested cases when 
only 1 watch was on the list.





> zoo_remove_watchers - can remove the wrong watch 
> -------------------------------------------------
>
>                 Key: ZOOKEEPER-2611
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2611
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: c client
>            Reporter: Eyal leshem
>            Priority: Critical
>         Attachments: ZOOKEEPER-2611.patch
>
>
> The actual problem is in the function "removeWatcherFromList" - 
> That when we check if we need to delete the watch -  we compare the 
> WatcherCtx to one node before the one we want to delete.. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to