Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 291 invoked from network); 6 Dec 2010 16:38:34 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 6 Dec 2010 16:38:34 -0000 Received: (qmail 16204 invoked by uid 500); 6 Dec 2010 16:38:34 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 16029 invoked by uid 500); 6 Dec 2010 16:38:32 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 16021 invoked by uid 99); 6 Dec 2010 16:38:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Dec 2010 16:38:31 +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, 06 Dec 2010 16:38:31 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oB6GcBvu000788 for ; Mon, 6 Dec 2010 16:38:11 GMT Message-ID: <6677570.130491291653491102.JavaMail.jira@thor> Date: Mon, 6 Dec 2010 11:38:11 -0500 (EST) From: "Kristian Waagan (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-4928) Deadlock-prone synchronization in BasicDependencyManager In-Reply-To: <8961587.73021291297630638.JavaMail.jira@thor> 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/DERBY-4928?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kristian Waagan updated DERBY-4928: ----------------------------------- Issue & fix info: [Patch Available] > Deadlock-prone synchronization in BasicDependencyManager > -------------------------------------------------------- > > Key: DERBY-4928 > URL: https://issues.apache.org/jira/browse/DERBY-4928 > Project: Derby > Issue Type: Bug > Components: SQL > Affects Versions: 10.8.0.0 > Reporter: Kristian Waagan > Assignee: Kristian Waagan > Attachments: derby-4928-1a-depman_sync_and_cleanup.diff > > > The synchronization in BasicDependencyManager is prone to deadlock, because database locks are obtained while holding the monitor on "this". > Problem observed when testing the automatic index statistics update prototype. > There are comments in the file suggesting that in-memory dependencies should be accessed while holding the Java monitor, but the monitor should not be held when accessing stored dependencies. The implementation is breaking this rule/suggestion. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.