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

Roy Lenferink updated CELIX-398:
--------------------------------
    Attachment: pubsub_admin_udp subscriber disconnect bug.png
                pubsub_admin_udp bug.png

> [pubsub] UDP subscribers are connecting to many times
> -----------------------------------------------------
>
>                 Key: CELIX-398
>                 URL: https://issues.apache.org/jira/browse/CELIX-398
>             Project: Celix
>          Issue Type: Bug
>            Reporter: Roy Lenferink
>         Attachments: pubsub_admin_udp bug.png, pubsub_admin_udp subscriber 
> disconnect bug.png
>
>
> There's a bug in the PubsubAdminUDP where a subscriber is connecting too many 
> times when there are multiple publishers.
> The problem occurs when deploying a bundle with multiple publishers:
> ---------------------------------------------------------------------
> add_deploy("pubsub_publisher_udp_mc" 
>     GROUP "pubsub"
>     BUNDLES
>        shell
>        shell_tui
>        org.apache.celix.pubsub_discovery.etcd.PubsubDiscovery
>        org.apache.celix.pubsub_topology_manager.PubSubTopologyManager
>        org.apache.celix.pubsub_admin.PubSubAdminUdpMc
>        org.apache.celix.pubsub_publisher.PoiPublisher
>        org.apache.celix.pubsub_publisher.PoiPublisher2
> )
> add_deploy("pubsub_subscriber_udp_mc" 
>     GROUP "pubsub"
>     BUNDLES
>        shell
>        shell_tui
>        org.apache.celix.pubsub_discovery.etcd.PubsubDiscovery
>        org.apache.celix.pubsub_topology_manager.PubSubTopologyManager
>        org.apache.celix.pubsub_admin.PubSubAdminUdpMc
>        org.apache.celix.pubsub_subscriber.PoiSubscriber
> )
> ---------------------------------------------------------------------
> This way the subscribers is connecting 2 times to a publisher because the UDP 
> endpoint is listed 2 times in etcd. To prevent this the subscriber needs to 
> check if it's already connected to a publisher.
> Because of this problem, a segmentation fault shows up when disconnecting the 
> subscriber.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to