celix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pepijn Noltes (Jira)" <j...@apache.org>
Subject [jira] [Closed] (CELIX-411) Old publications are prompted to a subscriber if ETCD is not restarted
Date Tue, 17 Sep 2019 17:43:00 GMT

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

Pepijn Noltes closed CELIX-411.
    Resolution: Fixed

> Old publications are prompted to a subscriber if ETCD is not restarted
> ----------------------------------------------------------------------
>                 Key: CELIX-411
>                 URL: https://issues.apache.org/jira/browse/CELIX-411
>             Project: Celix
>          Issue Type: Bug
>            Reporter: Gabriele Ricciardi
>            Priority: Major
> In order to reproduce the bug, perform the following steps:
> - Open a terminal T1 and run ETCD
> - Open a second terminal T2 and start the pubsub_publisher_zmq deploy
> - Open a third terminal T3 and start the pubsub_subscriber_zmq deploy
> - Verify that data are correctly exchanged between publisher and subscriber
> - Stop both Celix frameworks on T2 and T3
> - Start again the subscriber on T3: you will see that old publications are prompted by
the discovery 
> - Start again the publisher on T2: on T3 you will see that new publications are added
but no data flows from the publisher to the subscriber
> The problem seems to be in what's prompted to the subscriber after the restart: despite
the fact that the etcd_watch (in the PubsubDiscovery etcd_watcher) call is done on an up-to-date
index, all the precedent ETCD transactions are prompted.
> If ETCD is stopped, the data folder (default.etcd) deleted and restarted, before restarting
publisher and subscriber, everything works fine.

This message was sent by Atlassian Jira

View raw message