Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 41006 invoked from network); 10 Mar 2010 17:08:37 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Mar 2010 17:08:37 -0000 Received: (qmail 58049 invoked by uid 500); 10 Mar 2010 17:08:07 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 57924 invoked by uid 500); 10 Mar 2010 17:08:06 -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 57916 invoked by uid 99); 10 Mar 2010 17:08:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Mar 2010 17:08:06 +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, 10 Mar 2010 17:08:05 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B6480234C4C0 for ; Wed, 10 Mar 2010 17:07:45 +0000 (UTC) Message-ID: <1477611735.10721268240865745.JavaMail.jira@brutus.apache.org> Date: Wed, 10 Mar 2010 17:07:45 +0000 (UTC) From: "Ralf Menzel (JIRA)" To: dev@activemq.apache.org Subject: [jira] Updated: (AMQ-2191) Incorrect handling of interruptions during commit or rollback of a transaction In-Reply-To: <1846318509.1238595574704.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c [ https://issues.apache.org/activemq/browse/AMQ-2191?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ralf Menzel updated AMQ-2191: ----------------------------- Attachment: ACTIVEMQ-PATCH This patch seems to fix the problem for me when using the VM transport. > Incorrect handling of interruptions during commit or rollback of a transaction > ------------------------------------------------------------------------------ > > Key: AMQ-2191 > URL: https://issues.apache.org/activemq/browse/AMQ-2191 > Project: ActiveMQ > Issue Type: Bug > Affects Versions: 5.3.0 > Environment: Java 1.6.0_02 > Kubuntu Linux 2.6.24-22 > Bitronix Transaction Manager 1.3.2 > Reporter: Michael Gottschalk > Assignee: Rob Davies > Fix For: 5.3.0 > > Attachments: ACTIVEMQ-PATCH, activemq_interruption_fix.diff, xa-jms-exception.txt > > > We have a process framework that sends interruptions to threads that should be stopped or paused. Some of these threads interact with ActiveMQ, so interruptions can occur inside ActiveMQ at different points. > A problem occurs if the interruption is detected in ActiveMQConnection.syncSendPacket during commit or rollback of a transaction. ActiveMQ then throws a JMSException so that it appears to Bitronix as if the XA transaction is in an inconsistent state (see stacktrace in the attached file). > In our opinion, the interruption should be ignored by ActiveMQ during the critical commit or rollback phase. It is not mandatory that an interruption has an immediate effect. Especially such a non-interruptable step as rollback or commit should be performed even though an interruption occurs. > I created a patch for the class TransactionContext which, in case of an interruption, resets the interruption state of the thread, retries the syncSendPacket method call and restores the thread's interruption state afterwards. In this manner, no inconsistent state exceptions occur in the transaction manager any longer and interruption is deferred until the commit/rollback has succeeded. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.