Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D1F0AE9FF for ; Tue, 20 Nov 2012 10:58:50 +0000 (UTC) Received: (qmail 16393 invoked by uid 500); 20 Nov 2012 10:58:50 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 16207 invoked by uid 500); 20 Nov 2012 10:58:50 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 16184 invoked by uid 99); 20 Nov 2012 10:58:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Nov 2012 10:58:49 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gary.tully@gmail.com designates 74.125.82.45 as permitted sender) Received: from [74.125.82.45] (HELO mail-wg0-f45.google.com) (74.125.82.45) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Nov 2012 10:58:43 +0000 Received: by mail-wg0-f45.google.com with SMTP id dq11so2021756wgb.14 for ; Tue, 20 Nov 2012 02:58:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=uNW2bEY+86dPRR5T3XyZYl2q2Fp1lXzvXA4P5DDyzFQ=; b=pXOEcqLeLzzAN6pG2R9AV3BEV1pyfNh3wtyKqbebI4i77iowbKXzMJ2N3mwpmujoxY Q7j3Ps4KvvJlMd7A4J2c7YPVraTWyANXlRdS3yCkUUDywfEbgmrSWW1iDLgfTJY/7xrO FW95NPP0VSRUZtnrMzduRuu+O3KUMPNP8VZHG9PAP1AR7QV0kArUygfjGyHo4rrQh7hM g3Zd682GYE6LD181NCQNsTajCvgfy92h1Ob0NxN0r9YqL4KLXVuk4JH6XH2T9WfWCNXK CsccONz1ElbOu5/0V5/D3zk0ygE+J4YpH28vpYXn+wczp/gMKFoA/q5+ACu5/J8u98Vm t2Hw== MIME-Version: 1.0 Received: by 10.216.142.74 with SMTP id h52mr1830828wej.169.1353409102416; Tue, 20 Nov 2012 02:58:22 -0800 (PST) Received: by 10.194.81.98 with HTTP; Tue, 20 Nov 2012 02:58:22 -0800 (PST) In-Reply-To: <1353360522123-4659548.post@n4.nabble.com> References: <1353360522123-4659548.post@n4.nabble.com> Date: Tue, 20 Nov 2012 10:58:22 +0000 Message-ID: Subject: Re: Topic consumers are lost in a cyclic network From: Gary Tully To: "users@activemq.apache.org" Content-Type: multipart/alternative; boundary=0016e6d58ce9c90bc004ceeb1cb9 X-Virus-Checked: Checked by ClamAV on apache.org --0016e6d58ce9c90bc004ceeb1cb9 Content-Type: text/plain; charset=ISO-8859-1 That does look like strange behavior. I think you should reopen AMQ-2327 with your test case. There may be a better way to resolve that issue that does not introduce ordering dependencies. The test case attached to AMQ-2327 is the best focus to understand the original use case but I think this may be a tricky one to sort out. We will try and get to the bottom of this for the 5.8 release. On 19 November 2012 21:28, Guerrero wrote: > I am using activemq-core-5.7.0. > > We are using broker-to-broker communications with conduit subscriptions to > reduce redundant messaging. We have a top-tier coordinating server, call it > broker A. We have two routing servers that each connect to A, call them > broker B and broker C. We have remote applications that connect to both B > and C for redundancy, and client applications that connect to only one of B > or C. We only use topic messages for all communications between nodes. > > Normally, all is well. However, we noticed some problems in the remaining > network when nodes were lost. We were able to find steps to recreate the > problem as follows. Start the nodes in the order A, B, C, Remote, Client1, > Client2. Stop node C. At this point, some of the consumers from the > Remote > were lost from Client1, while others remained. If we send a message from > Client1 on one of the topics that was lost, it doesn't leave the local > broker. > > Tracing into the source of the network bridge, I suspected that > ConduitBridge.checkPaths was preventing one of the consumer paths from > being > added to the list. I've attached a unit test, ConduitMockTest.java > > , that uses JUnit, EasyMock, and activemq, that shows how messages may stop > forwarding depending on the order the consumers are added and removed from > the network bridge. > > When I comment out the check for checkPaths, my test and our application > seem to work. However, ThreeBrokerQueueNetworkTest.testDuplicateQueueSubs > fails. I traced back the addition of checkPaths as a fix for AMQ-2327 > , but cannot understand > why duplicate paths would be suppressed like this, when there is a flag to > suppress duplicate subscriptions for topics and queues and this is checked > elsewhere. > > Can anyone add any insights into why checkPaths exists, or what could be > wrong with the attached test case for addAndRemoveSameOrder()? > > > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/Topic-consumers-are-lost-in-a-cyclic-network-tp4659548.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > -- http://redhat.com http://blog.garytully.com --0016e6d58ce9c90bc004ceeb1cb9--