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 1B02010F3F for ; Fri, 28 Feb 2014 21:39:27 +0000 (UTC) Received: (qmail 34047 invoked by uid 500); 28 Feb 2014 21:39:24 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 33763 invoked by uid 500); 28 Feb 2014 21:39:23 -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 33583 invoked by uid 99); 28 Feb 2014 21:39:21 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Feb 2014 21:39:21 +0000 Date: Fri, 28 Feb 2014 21:39:21 +0000 (UTC) From: "Jukka Zitting (JIRA)" To: dev@jackrabbit.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (JCR-3738) CLONE - Deadlock on LOCAL_REVISION table in clustering environment 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/JCR-3738?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jukka Zitting updated JCR-3738: ------------------------------- Description: Original, cloned description: {quote}When inserting a lot of nodes concurrently (100/200 threads) the system hangs generating a deadlock on the LOCAL_REVISION table. There is a thread that starts a transaction but the transaction remains open, while another thread tries to acquire the lock on the table. This actually happen even if there is only a server up but configured in cluster mode. I found that in AbstractJournal, we try to write the LOCAL_REVISION even if we don't sync any record because they're generated by the same journal of the thread running. Removing this unnecessary (to me :-) ) write to the LOCAL_REVISION table, remove the deadlock. {quote} This might not be the exact same case with this issue. See the attached thread dumps etc. for full details. was: When inserting a lot of nodes concurrently (100/200 threads) the system hangs generating a deadlock on the LOCAL_REVISION table. There is a thread that starts a transaction but the transaction remains open, while another thread tries to acquire the lock on the table. This actually happen even if there is only a server up but configured in cluster mode. I found that in AbstractJournal, we try to write the LOCAL_REVISION even if we don't sync any record because they're generated by the same journal of the thread running. Removing this unnecessary (to me :-) ) write to the LOCAL_REVISION table, remove the deadlock. Affects Version/s: (was: 2.4.3) 2.6.2 Fix Version/s: (was: 2.5.3) Assignee: Jukka Zitting (was: Bart van der Schans) > CLONE - Deadlock on LOCAL_REVISION table in clustering environment > ------------------------------------------------------------------ > > Key: JCR-3738 > URL: https://issues.apache.org/jira/browse/JCR-3738 > Project: Jackrabbit Content Repository > Issue Type: Bug > Components: clustering > Affects Versions: 2.6.2 > Environment: CQ5.6.1 with jackrabbit-core 2.6.2 backed off ibm db2 v10.5 > Reporter: Ankush Malhotra > Assignee: Jukka Zitting > Priority: Critical > Attachments: db-deadlock-info.txt, stat-cache.log, threaddumps.zip > > > Original, cloned description: > {quote}When inserting a lot of nodes concurrently (100/200 threads) the system hangs generating a deadlock on the LOCAL_REVISION table. > There is a thread that starts a transaction but the transaction remains open, while another thread tries to acquire the lock on the table. > This actually happen even if there is only a server up but configured in cluster mode. > I found that in AbstractJournal, we try to write the LOCAL_REVISION even if we don't sync any record because they're generated by the same journal of the thread running. > Removing this unnecessary (to me :-) ) write to the LOCAL_REVISION table, remove the deadlock. > {quote} > This might not be the exact same case with this issue. See the attached thread dumps etc. for full details. -- This message was sent by Atlassian JIRA (v6.1.5#6160)