openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rick Curtis (JIRA)" <j...@apache.org>
Subject [jira] Updated: (OPENJPA-1350) Race condition in the MetaDataRepository
Date Wed, 21 Oct 2009 16:20:00 GMT

     [ https://issues.apache.org/jira/browse/OPENJPA-1350?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Rick Curtis updated OPENJPA-1350:
---------------------------------

    Attachment: OPENJPA-1350-1.2.x.patch

Attaching a patch which includes a new test case and the code fix for the 1.2.x release.

> Race condition in the MetaDataRepository
> ----------------------------------------
>
>                 Key: OPENJPA-1350
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1350
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: kernel
>            Reporter: Rick Curtis
>            Assignee: Rick Curtis
>         Attachments: 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:
> <openjpa-2.0.0-SNAPSHOT-r422266:824454M fatal user error> 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.


Mime
View raw message