Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 7990 invoked from network); 24 Feb 2010 14:10:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Feb 2010 14:10:50 -0000 Received: (qmail 3114 invoked by uid 500); 24 Feb 2010 14:10:50 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 3073 invoked by uid 500); 24 Feb 2010 14:10:50 -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 3063 invoked by uid 99); 24 Feb 2010 14:10:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Feb 2010 14:10:50 +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; Wed, 24 Feb 2010 14:10:48 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E647029A0011 for ; Wed, 24 Feb 2010 06:10:27 -0800 (PST) Message-ID: <1473671252.491601267020627927.JavaMail.jira@brutus.apache.org> Date: Wed, 24 Feb 2010 14:10:27 +0000 (UTC) From: "Donald Woods (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Updated: (OPENJPA-1328) Move cacheable class configuration to ClassMetaData In-Reply-To: <610405538.1253903955983.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-1328?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Donald Woods updated OPENJPA-1328: ---------------------------------- Fix Version/s: (was: 2.0.0) 2.0.0-beta > Move cacheable class configuration to ClassMetaData > --------------------------------------------------- > > Key: OPENJPA-1328 > URL: https://issues.apache.org/jira/browse/OPENJPA-1328 > Project: OpenJPA > Issue Type: Bug > Components: datacache > Affects Versions: 1.2.0, 1.2.1 > Reporter: Jody Grassel > Assignee: Michael Dick > Fix For: 1.0.4, 1.2.2, 1.3.0, 2.0.0-beta > > Attachments: OpenJPA_1.2.x_OJ1328.patch > > > I'm proposing to move the cacheable class configuration processing from the datacache classes to ClassMetaData. The feature, introduced in OPENJPA-1045, effectively works by returning null for ClassMetaData.getDataCacheName(), where classes which should not be cached return null, otherwise the name of the datacache they may be cached by is returned. > THe problem is that some third party datacache plugins are not reentrant, and the existing ClassMetaData.isCacheable() makes use of the method call getRepository().getConfiguration().getDataCacheManagerInstance(). This invokes the initialization of the datacache, which may result in further initialization/copying of CMD objects, which reenter the isCacheable() method. If a third party datacache plugin is not reentrant safe, this can cause a failure in the form of Exceptions or hung threads. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.