Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 84842 invoked from network); 22 Nov 2010 10:59:11 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Nov 2010 10:59:11 -0000 Received: (qmail 50317 invoked by uid 500); 22 Nov 2010 10:59:43 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 50246 invoked by uid 500); 22 Nov 2010 10:59:41 -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 50236 invoked by uid 99); 22 Nov 2010 10:59:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Nov 2010 10:59:41 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Nov 2010 10:59:34 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oAMAxDmL012016 for ; Mon, 22 Nov 2010 10:59:13 GMT Message-ID: <27371309.232291290423553480.JavaMail.jira@thor> Date: Mon, 22 Nov 2010 05:59:13 -0500 (EST) From: "Thomas Mueller (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Resolved: (JCR-2816) Repository is not unlocked if version manager init failed and assertions are enabled In-Reply-To: <16680044.232271290423435083.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JCR-2816?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas Mueller resolved JCR-2816. --------------------------------- Resolution: Fixed Fix Version/s: 2.2.0 I removed the assertion in revision 1037668. > Repository is not unlocked if version manager init failed and assertions are enabled > ------------------------------------------------------------------------------------ > > Key: JCR-2816 > URL: https://issues.apache.org/jira/browse/JCR-2816 > Project: Jackrabbit Content Repository > Issue Type: Bug > Reporter: Thomas Mueller > Assignee: Thomas Mueller > Fix For: 2.2.0 > > > The following test case will work as expected, except when assertions are enabled (java -ea ...): > Connection conn = DriverManager.getConnection( > "jdbc:derby:repository/version/db;create=true"); > Statement stat = conn.createStatement(); > stat.execute("create table version_bundle(id int)"); > TransientRepository rep = new TransientRepository(); > try { > rep.login(new SimpleCredentials("", new char[0])); > } catch (Exception e) { > // ignore > } > rep.shutdown(); > stat.execute("drop table version_bundle"); > new TransientRepository().login(new SimpleCredentials("", new char[0])); > The reason is the assertion in RepositoryContext.getInternalVersionManager. Because of this assertion, the repository lock is not released during the repository shutdown. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.