Gabriele Ricciardi created CELIX-411:
----------------------------------------
Summary: 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
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
(v6.4.14#64029)