Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 62475 invoked from network); 9 Nov 2009 22:11:55 -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:55 -0000 Received: (qmail 21556 invoked by uid 500); 9 Nov 2009 22:11:55 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 21499 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 21489 invoked by uid 99); 9 Nov 2009 22:11:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Nov 2009 22:11:55 +0000 X-ASF-Spam-Status: No, hits=-10.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI 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:52 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 661D2234C1EF for ; Mon, 9 Nov 2009 14:11:32 -0800 (PST) Message-ID: <1363200182.1257804692417.JavaMail.jira@brutus> Date: Mon, 9 Nov 2009 22:11:32 +0000 (UTC) From: "Rick Curtis (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Closed: (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 [ https://issues.apache.org/jira/browse/OPENJPA-1379?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rick Curtis closed OPENJPA-1379. -------------------------------- Resolution: Fixed This issue is fixed in trunk. > 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.