You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Amichai Rothman (JIRA)" <ji...@apache.org> on 2013/04/22 11:23:16 UTC

[jira] [Updated] (DOSGI-176) zookeeper discovery sending multiple duplicate endpoint notifications

     [ https://issues.apache.org/jira/browse/DOSGI-176?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amichai Rothman updated DOSGI-176:
----------------------------------

    Attachment: fix_duplicate_endpoint_notifications.diff

this patch is on top of the DOSGI-172 patch for convenience (no conflict if they will be applied in order). I can rebase it from trunk if necessary.
                
> zookeeper discovery sending multiple duplicate endpoint notifications
> ---------------------------------------------------------------------
>
>                 Key: DOSGI-176
>                 URL: https://issues.apache.org/jira/browse/DOSGI-176
>             Project: CXF Distributed OSGi
>          Issue Type: Bug
>          Components: Discovery
>    Affects Versions: 1.5
>            Reporter: Amichai Rothman
>         Attachments: fix_duplicate_endpoint_notifications.diff
>
>
> To my understanding of the current behavior, the InterfaceMonitorManager creates a ZooKeeper watcher (InterfaceMonitor) per scope. The InterfaceMonitor however monitors ZK nodes according to the objectClass (ignoring scope). When a ZK node change is detected, the IMs watching that node all trigger IMM's event handler. But instead of sending out the EndpointListener events corresponding to the scope for which each IM was created, it loops through all of the EndpointListener requested scopes and notifies the first matching one. This effectively causes multiple events to be triggered for the same scope (instead of one per IM scope), and possibly others to be missed.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira