[hibernate-issues] [Hibernate-JIRA] Resolved: (HHH-5866) ServiceRegistry is not thread-safe

Steve Ebersole (JIRA) noreply at atlassian.com
Wed Mar 9 14:41:08 EST 2011


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-5866?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steve Ebersole resolved HHH-5866.
---------------------------------

       Resolution: Rejected
    Fix Version/s:     (was: 4.0.0.Alpha1)

I believe this is obsolete now with the proxy and binding based impl inside ServiceRegsitryImpl

> ServiceRegistry is not thread-safe
> ----------------------------------
>
>                 Key: HHH-5866
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5866
>             Project: Hibernate Core
>          Issue Type: Bug
>          Components: core
>            Reporter: Emmanuel Bernard
>
> ServiceRegistryImpl uses a HashMap which is not thread-safe.
> Services can be initialized lazily which means several threads can end up asking for the same service in //
> The implementation needs to guard against that.
> note that using a ConcurrentHashMap is not good enough as we probably don't want the same service type to be initialized multiple times.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list