Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 90199 invoked from network); 23 Nov 2006 19:21:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Nov 2006 19:21:26 -0000 Received: (qmail 47261 invoked by uid 500); 23 Nov 2006 19:21:34 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 47230 invoked by uid 500); 23 Nov 2006 19:21:34 -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 47220 invoked by uid 99); 23 Nov 2006 19:21:34 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Nov 2006 11:21:34 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Nov 2006 11:21:24 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id DE9DA71429F for ; Thu, 23 Nov 2006 11:21:03 -0800 (PST) Message-ID: <7734683.1164309663909.JavaMail.jira@brutus> Date: Thu, 23 Nov 2006 11:21:03 -0800 (PST) From: "Jukka Zitting (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Resolved: (JCR-632) VersionManager lock not released in some circumstances In-Reply-To: <3915882.1163161717126.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ http://issues.apache.org/jira/browse/JCR-632?page=all ] Jukka Zitting resolved JCR-632. ------------------------------- Fix Version/s: 1.2 (was: 1.1.1) Resolution: Fixed Resolved in revision 478645 as a side effect of the JCR-546 fix. As discussed in JCR-546, this change will not yet be included in the 1.1.1 release. > VersionManager lock not released in some circumstances > ------------------------------------------------------ > > Key: JCR-632 > URL: http://issues.apache.org/jira/browse/JCR-632 > Project: Jackrabbit > Issue Type: Bug > Components: versioning > Affects Versions: 1.0, 1.0.1, 1.1, 0.9 > Reporter: Przemo Pakulski > Assigned To: Jukka Zitting > Priority: Critical > Fix For: 1.2 > > Attachments: JCR-632 > > > In some circumstances it is possible that lock is not released in VersionManager.checkin method. > There is following block of code in checkin nethod : > aquireReadLock(); > try { > ..... > } catch (IllegalStateException e) { > releaseReadLock(); > throw new RepositoryException("Unable to start edit operation."); > } > Lock release should be in finally block to make sure that lock is released when unexpected exception is thrown. > In our environment we are getting NPE in mentioned block of code, it results in persisten lock. > No versioning operation is possible and our application server is running ot of threads (all threads are locked). -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira