Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 62953 invoked from network); 24 Jul 2009 14:04:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Jul 2009 14:04:53 -0000 Received: (qmail 55130 invoked by uid 500); 24 Jul 2009 14:05:58 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 55054 invoked by uid 500); 24 Jul 2009 14:05:58 -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 55044 invoked by uid 99); 24 Jul 2009 14:05:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Jul 2009 14:05:58 +0000 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, 24 Jul 2009 14:05:55 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D2247234C046 for ; Fri, 24 Jul 2009 07:05:33 -0700 (PDT) Message-ID: <357387869.1248444333859.JavaMail.jira@brutus> Date: Fri, 24 Jul 2009 07:05:33 -0700 (PDT) From: "Gary Tully (JIRA)" To: dev@activemq.apache.org Subject: [jira] Commented: (AMQ-2331) Message is sent to wrong broker in network of brokers inspite of using the Message selector In-Reply-To: <1280683258.1248431133734.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/AMQ-2331?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=52944#action_52944 ] Gary Tully commented on AMQ-2331: --------------------------------- can you try this with a 5.3-SNAPSHOT and with conduitSubscriptions disabled. I recall a fix related to selectors and networks in the past few months. > Message is sent to wrong broker in network of brokers inspite of using the Message selector > ------------------------------------------------------------------------------------------- > > Key: AMQ-2331 > URL: https://issues.apache.org/activemq/browse/AMQ-2331 > Project: ActiveMQ > Issue Type: Bug > Components: Broker, Connector, Selector > Affects Versions: 5.2.0 > Environment: All > Reporter: Pradeep G > Priority: Blocker > Fix For: 5.2.0 > > > I have a network of brokers configured in Hub/Spoke topology. The Spokes connect to the Hub via duplex network connector. Am using only Queues, and there are same set of Queues on both the Hub and the Spokes. Each of the Queues on the Spokes have only one consumer, and the consumer subscribes to messages based on a selector. The selector field is the Spoke ID (a simple name). The Hub transmits messages meant for a spoke by setting the message selector in the message to the Spoke ID. The idea is to send specific messages to the respective Spoke. So all the messages are sure to have the message selector set to the specific Spoke ID. > The issue am facing is as follows. Suppose I have two Spokes A and B, and connect to a Hub say H via duplex network connector. Most times this setup works fine, but some times the messages meant for A are sent to B and vice-versa. > Here is what I found in the logs: > 2009-07-24 15:48:21,054 DEBUG [org.apache.activemq.store.amq.AMQMessageStore] [ActiveMQ Transport: tcp:///127.0.0.1:53209]: Journalled message add for: ID:pgopal-lt-53198-1248427143033-2:6:1:97:27, at: offset = 1032207, file = 1, size = 444, type = 1 > 2009-07-24 15:48:21,057 DEBUG [org.apache.activemq.store.amq.AMQMessageStore] [ActiveMQ Task]: Doing batch update... adding: 1 removing: 0 > 2009-07-24 15:48:21,057 DEBUG [org.apache.activemq.store.amq.AMQMessageStore] [ActiveMQ Task]: Batch update done. > 2009-07-24 15:48:21,062 DEBUG [org.apache.activemq.store.amq.AMQMessageStore] [ActiveMQ Transport: tcp:///172.17.0.58:2673]: Journalled message remove for: ID:pgopal-lt-53198-1248427143033-2:6:1:97:27, at: offset = 1032651, file = 1, size = 285, type = 1 > 2009-07-24 15:48:21,062 DEBUG [org.apache.activemq.store.amq.AMQMessageStore] [ActiveMQ Task]: Doing batch update... adding: 0 removing: 1 > 2009-07-24 15:48:21,062 DEBUG [org.apache.activemq.store.amq.AMQMessageStore] [ActiveMQ Task]: Batch update done. > The message was meant for a consumer in the broker running on machine 172.17.0.59, whereas the message is being removed from 172.17.0.58 (line 4). > Is there a workaround or patch ? > Thanks, > Pradeep -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.