Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 62514 invoked from network); 9 Nov 2009 22:11:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Nov 2009 22:11:56 -0000 Received: (qmail 21737 invoked by uid 500); 9 Nov 2009 22:11:56 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 21696 invoked by uid 500); 9 Nov 2009 22:11:55 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 21686 invoked by uid 99); 9 Nov 2009 22:11:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Nov 2009 22:11:55 +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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Nov 2009 22:11:53 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 60351234C046 for ; Mon, 9 Nov 2009 14:11:32 -0800 (PST) Message-ID: <1333447864.1257804692379.JavaMail.jira@brutus> Date: Mon, 9 Nov 2009 22:11:32 +0000 (UTC) From: "Rick Curtis (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Updated: (OPENJPA-1379) Locking problem when using timestamp QueryCache eviction policy. In-Reply-To: <94718484.1257799712640.JavaMail.jira@brutus> 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/OPENJPA-1379?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rick Curtis updated OPENJPA-1379: --------------------------------- Affects Version/s: (was: 2.0.0-M4) Fix Version/s: 2.0.0-M4 > Locking problem when using timestamp QueryCache eviction policy. > ---------------------------------------------------------------- > > Key: OPENJPA-1379 > URL: https://issues.apache.org/jira/browse/OPENJPA-1379 > Project: OpenJPA > Issue Type: Bug > Components: datacache > Affects Versions: 2.0.0-M3 > Reporter: Rick Curtis > Assignee: Rick Curtis > Fix For: 2.0.0-M4 > > > I ran into a bug in AbstractQueryCache when using the timestamp QueryCache eviction policy. This is only a problem when running in a multithreaded environment. > The net of the problem is that in AbstractQueryCache.onTypesChanged(TypesChangedEvent ev) we call writeLock(), but when using the non-default eviction policy we never call writeUnlock(). As a result, any other threads requesting a writeLock on the cache will block indefinitely. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.