From dev-return-15299-apmail-openjpa-dev-archive=openjpa.apache.org@openjpa.apache.org Thu Feb 25 21:08:50 2010 Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 68018 invoked from network); 25 Feb 2010 21:08:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Feb 2010 21:08:50 -0000 Received: (qmail 47315 invoked by uid 500); 25 Feb 2010 21:08:49 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 47223 invoked by uid 500); 25 Feb 2010 21:08:49 -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 46992 invoked by uid 99); 25 Feb 2010 21:08:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Feb 2010 21:08:48 +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; Thu, 25 Feb 2010 21:08:48 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1841D29A0012 for ; Thu, 25 Feb 2010 13:08:28 -0800 (PST) Message-ID: <1517594284.536041267132108097.JavaMail.jira@brutus.apache.org> Date: Thu, 25 Feb 2010 21:08:28 +0000 (UTC) From: "Rick Curtis (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Closed: (OPENJPA-1350) Race condition in the MetaDataRepository In-Reply-To: <1032789798.1255535971331.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-1350?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rick Curtis closed OPENJPA-1350. -------------------------------- > Race condition in the MetaDataRepository > ---------------------------------------- > > Key: OPENJPA-1350 > URL: https://issues.apache.org/jira/browse/OPENJPA-1350 > Project: OpenJPA > Issue Type: Bug > Components: kernel > Affects Versions: 1.0.3, 1.2.1, 2.0.0-M3 > Reporter: Rick Curtis > Assignee: Rick Curtis > Fix For: 1.2.3, 2.0.0 > > Attachments: OJ1350_1.0.x.patch, OPENJPA-1350-1.2.x.patch, OPENJPA-1350-1.2.x.patch > > > There is a race condition in the MetaDataRepository where if multiple threads try to get MetaData for the same alias, one or more of the threads can get incorrect data. This can only occur on the first (few) thread(s). After init is complete, the problem does not occur. > The error that is observed is the following: > org.apache.openjpa.util.MetaDataException: Could not locate metadata for the class using alias "MdrTestEntity". Perhap > s you meant MdrTestEntity, which is a close match. This could mean that you have mis-spelled the alias, or that OpenJPA failed to properly load the metadata for the type whose > alias is "MdrTestEntity". Registered alias mappings: "{MdrTestEntity=[class org.apache.openjpa.persistence.meta.MdrTestEntity]}" -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.