You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "Harald Wellmann (JIRA)" <ji...@apache.org> on 2014/04/29 17:25:16 UTC

[jira] [Commented] (DELTASPIKE-578) org.apache.deltaspike.data.impl.meta.RepositoryComponent is not thread safe

    [ https://issues.apache.org/jira/browse/DELTASPIKE-578?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13984403#comment-13984403 ] 

Harald Wellmann commented on DELTASPIKE-578:
--------------------------------------------

Just ran into this issue while load testing my application. It's easy to reproduce and there's no obvious workaround for consumers, so the priority should be raised.

> org.apache.deltaspike.data.impl.meta.RepositoryComponent is not thread safe
> ---------------------------------------------------------------------------
>
>                 Key: DELTASPIKE-578
>                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-578
>             Project: DeltaSpike
>          Issue Type: Bug
>          Components: Data-Module
>    Affects Versions: 0.6
>            Reporter: Stuart Douglas
>            Assignee: Thomas Hug
>             Fix For: 0.7
>
>         Attachments: DELTASPIKE-578.patch
>
>
> The lazy init process is not thread safe. In particular the code checks if entityManagerResolverIsNormalScope is null to determine if the entity is initialised, however this is set before the initialisation is actually completed, meaning a thread can get an uninitialized component, which then causes problems. 
> The initialize() call should be moved up to before entityManagerResolverIsNormalScope is set.



--
This message was sent by Atlassian JIRA
(v6.2#6252)