Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9AAAD40EE for ; Fri, 1 Jul 2011 17:38:53 +0000 (UTC) Received: (qmail 34687 invoked by uid 500); 1 Jul 2011 17:38:53 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 34574 invoked by uid 500); 1 Jul 2011 17:38:52 -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 34558 invoked by uid 99); 1 Jul 2011 17:38:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jul 2011 17:38:52 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jul 2011 17:38:49 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id F2C4C43F4D5 for ; Fri, 1 Jul 2011 17:38:28 +0000 (UTC) Date: Fri, 1 Jul 2011 17:38:28 +0000 (UTC) From: "Gary Tully (JIRA)" To: dev@activemq.apache.org Message-ID: <1392519978.9111.1309541908991.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Assigned] (AMQ-2324) Forwarded message cannot be distributed to the original broker MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AMQ-2324?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gary Tully reassigned AMQ-2324: ------------------------------- Assignee: Gary Tully (was: Bruce Snyder) > Forwarded message cannot be distributed to the original broker > -------------------------------------------------------------- > > Key: AMQ-2324 > URL: https://issues.apache.org/jira/browse/AMQ-2324 > Project: ActiveMQ > Issue Type: Improvement > Affects Versions: 5.2.0 > Reporter: ying > Assignee: Gary Tully > Fix For: 5.6.0 > > > I have a simple cause which can cause dispatch problem: > 1. setup a network of broker1, broker2, bridged by multicast discovery > 2. make a producer send 5 msg to queueA to broker2 > 3. make a consumer to consume from broker1 queueA ( make it slow, so it only consumer 1 msg) but make sure all 5 msg from broker2 are forwared to broker1 > 4. stop the consumer to broke1, restart it to consume from broker2 queueA > 5. the 4 msgs originally published to broker2 and forwarded to broker1 and has not yet been consumed will stuck on broker1 and will not forwarded to broker2 for the consumer to consume. > Here is an solution: it checks forwarded to broker( eg, broker1) to see whether it has any active consumer, it will be able forward the message back to the original broker when there is no active consumer on the forwarded to broker. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira