From commits-return-5507-apmail-celix-commits-archive=celix.apache.org@celix.apache.org Tue Sep 17 17:43:23 2019 Return-Path: X-Original-To: apmail-celix-commits-archive@www.apache.org Delivered-To: apmail-celix-commits-archive@www.apache.org Received: from mail.apache.org (unknown [207.244.88.153]) by minotaur.apache.org (Postfix) with SMTP id E1DBD19BBC for ; Tue, 17 Sep 2019 17:43:22 +0000 (UTC) Received: (qmail 63756 invoked by uid 500); 17 Sep 2019 17:43:02 -0000 Delivered-To: apmail-celix-commits-archive@celix.apache.org Received: (qmail 63719 invoked by uid 500); 17 Sep 2019 17:43:02 -0000 Mailing-List: contact commits-help@celix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@celix.apache.org Delivered-To: mailing list commits@celix.apache.org Received: (qmail 63704 invoked by uid 500); 17 Sep 2019 17:43:02 -0000 Delivered-To: apmail-incubator-celix-commits@incubator.apache.org Received: (qmail 63699 invoked by uid 99); 17 Sep 2019 17:43:02 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Sep 2019 17:43:02 +0000 Received: from jira-he-de.apache.org (static.172.67.40.188.clients.your-server.de [188.40.67.172]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 9EAB8E30C3 for ; Tue, 17 Sep 2019 17:43:01 +0000 (UTC) Received: from jira-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira-he-de.apache.org (ASF Mail Server at jira-he-de.apache.org) with ESMTP id 5A60E7808DA for ; Tue, 17 Sep 2019 17:43:00 +0000 (UTC) Date: Tue, 17 Sep 2019 17:43:00 +0000 (UTC) From: "Pepijn Noltes (Jira)" To: celix-commits@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (CELIX-411) Old publications are prompted to a subscriber if ETCD is not restarted MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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 (v8.3.2#803003)