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 849BA10D1E for ; Wed, 6 Nov 2013 16:24:28 +0000 (UTC) Received: (qmail 96951 invoked by uid 500); 6 Nov 2013 16:24:25 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 96386 invoked by uid 500); 6 Nov 2013 16:24:20 -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 96249 invoked by uid 99); 6 Nov 2013 16:24:18 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Nov 2013 16:24:18 +0000 Date: Wed, 6 Nov 2013 16:24:18 +0000 (UTC) From: "Timothy Bish (JIRA)" To: dev@activemq.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (AMQ-4601) Redelivery counter does not behave properly when closing consumer MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMQ-4601?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Timothy Bish resolved AMQ-4601. ------------------------------- Resolution: Cannot Reproduce tested against 5.9 and test works without issue. > Redelivery counter does not behave properly when closing consumer > ----------------------------------------------------------------- > > Key: AMQ-4601 > URL: https://issues.apache.org/jira/browse/AMQ-4601 > Project: ActiveMQ > Issue Type: Bug > Components: JMS client > Affects Versions: 5.8.0 > Reporter: Alberto Aresca > Fix For: NEEDS_REVIEWED > > Attachments: activemq-redelivery-issue.zip > > > Attached a test case that does the following: > 1. Registers 4 consumers. > 2. Sends a message. > 3. When the first message is received, it does the following: > 3.1. Unregister the listeners for the consumers. > 3.2. Close the consumers. > 3.3. Rollback the transaction. > 4. Consume the message from a new consumer > After running the test called TestActiveMqRedeliveryIssue you will see in the logs (among others things): > delivery count 1 > delivery count 5 > The first one corresponds to the first message and the second one to the message that is consumed from the queue after the stop() procedure was called. > As you can see, the count increased by 4, which is the number of consumers. > The expected behaviour would be to have the redelivery counter set to 1 when the message is consumed the second time -- This message was sent by Atlassian JIRA (v6.1#6144)