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 4FDA8F634 for ; Fri, 26 Apr 2013 15:44:16 +0000 (UTC) Received: (qmail 73189 invoked by uid 500); 26 Apr 2013 15:44:16 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 73157 invoked by uid 500); 26 Apr 2013 15:44:16 -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 73148 invoked by uid 99); 26 Apr 2013 15:44:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Apr 2013 15:44:16 +0000 Date: Fri, 26 Apr 2013 15:44:16 +0000 (UTC) From: "Gary Tully (JIRA)" To: dev@activemq.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (AMQ-4472) consumer.close() on transacted session does not release prefetched messages 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-4472?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gary Tully resolved AMQ-4472. ----------------------------- Resolution: Fixed Fix Version/s: 5.9.0 Assignee: Hiram Chirino fix in http://svn.apache.org/r1471673 > consumer.close() on transacted session does not release prefetched messages > --------------------------------------------------------------------------- > > Key: AMQ-4472 > URL: https://issues.apache.org/jira/browse/AMQ-4472 > Project: ActiveMQ > Issue Type: Bug > Components: JMS client > Affects Versions: 5.8.0 > Reporter: Jason Sherman > Assignee: Hiram Chirino > Labels: transactions > Fix For: 5.9.0 > > Attachments: amq-4472.zip > > > When using transactions an issue can arise where the consumer has messages in it's prefetch and when consumer.close() is called the consumer is not closed and does not release the messages. > The use case is as follows: > 1) Create producer > 2) Create consumer > 3) Send message to queue > 4) Commit session > 5) Send a new message > 6) Close the consumer > 7) Start a new consumer > 8) Try to receive the message > Test case will be attached shortly. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira