Return-Path: X-Original-To: apmail-jackrabbit-dev-archive@www.apache.org Delivered-To: apmail-jackrabbit-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 A381B9E5E for ; Thu, 21 Jun 2012 11:25:45 +0000 (UTC) Received: (qmail 61611 invoked by uid 500); 21 Jun 2012 11:25:43 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 61430 invoked by uid 500); 21 Jun 2012 11:25:43 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 60883 invoked by uid 99); 21 Jun 2012 11:25:42 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Jun 2012 11:25:42 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id B39A21402B5 for ; Thu, 21 Jun 2012 11:25:42 +0000 (UTC) Date: Thu, 21 Jun 2012 11:25:42 +0000 (UTC) From: =?utf-8?Q?Claus_K=C3=B6ll_=28JIRA=29?= To: dev@jackrabbit.apache.org Message-ID: <913928033.38485.1340277942737.JavaMail.jiratomcat@issues-vm> In-Reply-To: <1447148110.33076.1340179009262.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Updated] (JCR-3349) The DatabaseJournal has Problems in XA Environment MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/JCR-3349?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:all-tabpanel ] Claus K=C3=B6ll updated JCR-3349: ---------------------------- Status: Patch Available (was: Open) =20 > The DatabaseJournal has Problems in XA Environment > -------------------------------------------------- > > Key: JCR-3349 > URL: https://issues.apache.org/jira/browse/JCR-3349 > Project: Jackrabbit Content Repository > Issue Type: Bug > Components: jackrabbit-core > Affects Versions: 2.4.2 > Reporter: Claus K=C3=B6ll > Assignee: Claus K=C3=B6ll > Fix For: 2.4.3 > > Attachments: JCR-3349.patch > > > In XA Environment it's possible that two different Threads are used for p= repare() and commit() > The ConnectionHelper stores the Connection that is used in the DatabaseJo= urnal on a ThreadLocal on prepare() > On commit() comes a different Thread so the previous used Connection is n= ot on the ThreadLocal > This is the resulting Thread-Dump > java.lang.IllegalStateException: not in batch mode > =09at org.apache.jackrabbit.core.util.db.ConnectionHelper.endBatch(Connec= tionHelper.java:256) > =09at org.apache.jackrabbit.core.journal.DatabaseJournal.endBatch(Databas= eJournal.java:513) > =09at org.apache.jackrabbit.core.journal.DatabaseJournal.doUnlock(Databas= eJournal.java:501) > =09at org.apache.jackrabbit.core.journal.AbstractJournal.unlock(AbstractJ= ournal.java:330) > =09at org.apache.jackrabbit.core.journal.AppendRecord.update(AppendRecord= .java:279) > =09at org.apache.jackrabbit.core.cluster.ClusterNode$WorkspaceUpdateChann= el.updateCommitted(ClusterNode.java:664) > =09at org.apache.jackrabbit.core.state.SharedItemStateManager$Update.end(= SharedItemStateManager.java:809) > =09at org.apache.jackrabbit.core.state.XAItemStateManager.commit(XAItemSt= ateManager.java:181) > =09at org.apache.jackrabbit.core.TransactionContext.commit(TransactionCon= text.java:195) > =09at org.apache.jackrabbit.core.XASessionImpl.commit(XASessionImpl.java:= 326) > =09at org.apache.jackrabbit.jca.TransactionBoundXAResource.commit(Transac= tionBoundXAResource.java:49) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.apache.org/jira/secure/ContactAdministrators!default.jsp= a For more information on JIRA, see: http://www.atlassian.com/software/jira