[jboss-jira] [JBoss JIRA] (WFCORE-1049) ConcreteResourceRegistration#registerSubModel is not thread safe

Stuart Douglas (JIRA) issues at jboss.org
Fri Nov 6 04:54:00 EST 2015


    [ https://issues.jboss.org/browse/WFCORE-1049?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13126281#comment-13126281 ] 

Stuart Douglas commented on WFCORE-1049:
----------------------------------------

Maybe this method should just be synchronized for now? I doubt it will have any measurable impact on startup time. 

> ConcreteResourceRegistration#registerSubModel is not thread safe
> ----------------------------------------------------------------
>
>                 Key: WFCORE-1049
>                 URL: https://issues.jboss.org/browse/WFCORE-1049
>             Project: WildFly Core
>          Issue Type: Bug
>          Components: Domain Management
>            Reporter: Stuart Douglas
>            Assignee: Brian Stansberry
>             Fix For: 3.0.0.Alpha1
>
>
> registerSubModel checks for existing, then registers, however it is invoked by two threads at the same time it is possible they will both see the resource as not existing and both register.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list