Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 26504 invoked from network); 16 May 2008 17:47:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 May 2008 17:47:04 -0000 Received: (qmail 38129 invoked by uid 500); 16 May 2008 17:47:06 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 38110 invoked by uid 500); 16 May 2008 17:47:06 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 38099 invoked by uid 99); 16 May 2008 17:47:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 May 2008 10:47:06 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 May 2008 17:46:28 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 88491234C116 for ; Fri, 16 May 2008 10:46:43 -0700 (PDT) Message-ID: <1205591533.1210960003557.JavaMail.jira@brutus> Date: Fri, 16 May 2008 10:46:43 -0700 (PDT) From: "Rob Davies (JIRA)" To: dev@activemq.apache.org Subject: [jira] Resolved: (AMQ-1661) Duplicate messages and extra network traffic with duplex connections In-Reply-To: <841607244.1207858903461.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/AMQ-1661?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rob Davies resolved AMQ-1661. ----------------------------- Fix Version/s: 5.2.0 Resolution: Fixed Patch applied in SVN revision 657147 > Duplicate messages and extra network traffic with duplex connections > -------------------------------------------------------------------- > > Key: AMQ-1661 > URL: https://issues.apache.org/activemq/browse/AMQ-1661 > Project: ActiveMQ > Issue Type: Bug > Components: Broker, Connector > Affects Versions: 5.1.0 > Reporter: Mike Forrest > Assignee: Rob Davies > Fix For: 5.2.0 > > Attachments: DemandForwardingBridgeSupport.txt, duplex.png > > > (see attached diagram) > I have two brokers A and B, where A establishes a connection to B with the options: > duplex="true" networkTTL="3" dynamicOnly="true" > I have two clients connecting to broker A, and one to B. One of the clients on A is subscribing to a queue, the other is publishing to it. The client on B is not using that queue at all. When the publishing client sends a message, the subscriber receives it as expected. But if I watch the network with a sniffer, I can see the message being sent to broker B and back again. > I also set up a topic that all of the clients subscribe to. If a client on A sends a message to the topic, the client on B receives it normally, but the two clients on A receive the message twice. I can see with the sniffer that the message is being sent from A to B and back. > If I change the connection so that it's not duplex (i.e. I set up matching simplex connections on both brokers) all of this unexpected behavior goes away. In the first example, the messages are no longer forwarded to B since there are no subscribers on that broker. In the second example, the message is received once by every subscriber. > I have tested on various 5.1 snapshots up through 4/8/08. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.