Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 32502 invoked from network); 29 Jul 2009 16:50:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Jul 2009 16:50:55 -0000 Received: (qmail 11568 invoked by uid 500); 29 Jul 2009 16:50:56 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 11505 invoked by uid 500); 29 Jul 2009 16:50:56 -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 11494 invoked by uid 99); 29 Jul 2009 16:50:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Jul 2009 16:50:56 +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; Wed, 29 Jul 2009 16:50:54 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CB63E234C04C for ; Wed, 29 Jul 2009 09:50:33 -0700 (PDT) Message-ID: <545428149.1248886233832.JavaMail.jira@brutus> Date: Wed, 29 Jul 2009 09:50:33 -0700 (PDT) From: "Gary Tully (JIRA)" To: dev@activemq.apache.org Subject: [jira] Commented: (AMQ-2334) getJMSRedelivered() incorrectly returns false after a MasterSlave failover In-Reply-To: <1823586637.1248825513825.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-2334?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=53022#action_53022 ] Gary Tully commented on AMQ-2334: --------------------------------- that seems like a reasonable (and smart) solution but it may make sense as part of a broker plugin and/or destination filter so that it can be easily enabled or disabled. If redelivery semantics are vital then it can be enabled through config etc. >From what I can see, any other solution will require storing the message twice which would kill performance. > getJMSRedelivered() incorrectly returns false after a MasterSlave failover > -------------------------------------------------------------------------- > > Key: AMQ-2334 > URL: https://issues.apache.org/activemq/browse/AMQ-2334 > Project: ActiveMQ > Issue Type: Bug > Components: Broker > Affects Versions: 5.2.0 > Reporter: Kyle Anderson > Attachments: SanRedeliver.java > > Original Estimate: 3 hours > Remaining Estimate: 3 hours > > Shared master/slave setup, described here http://activemq.apache.org/shared-file-system-master-slave.html > Scenario: > 1. Transacted consumer receives a message > 2. Transacted consumer disconnects prior to committing > 3. Transacted consumer #2 receives the same message. > Normally consumer #2 sees that message as getJMSRedelivered() = true. However, if the broker fails and another takes over from the data dir between step 1 and 3, the redelivery is set as false - even though a consumer has, in fact, seen the message before. See attached unit test. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.