celix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roy Lenferink (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CELIX-398) [pubsub] UDP subscribers are connecting to many times
Date Mon, 06 Feb 2017 15:59:42 GMT
Roy Lenferink created CELIX-398:
-----------------------------------

             Summary: [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


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)

Mime
View raw message