[jboss-jira] [JBoss JIRA] Created: (JBMICROCONT-111) ControllerContext state is updated outside the controller's lock

Adrian Brock (JIRA) jira-events at jboss.com
Tue Nov 28 07:27:55 EST 2006


ControllerContext state is updated outside the controller's lock
----------------------------------------------------------------

                 Key: JBMICROCONT-111
                 URL: http://jira.jboss.com/jira/browse/JBMICROCONT-111
             Project: JBoss MicroContainer
          Issue Type: Bug
          Components: Dependency
    Affects Versions:  JBossMC_2_0_0M1
            Reporter: Adrian Brock
         Assigned To: Adrian Brock
             Fix For: JBossMC_2_0_0 Beta


The controller context state is updated outside the read/write lock of the controller
in the install/uninstall callbacks of AbstractControllerContext
This can lead to race conditions like JBAS-3865

The context state should be updated at the same time as the controller's internal state.

This requires a change to the spi to introduce
ControllerContext.setState()

For anybody extending AbstractControllerContext (which includes all JBoss impls)
this change will picked up automatically.

For any others, the updating of the state needs to be moved from the install/uninstall methods
to the new method of that implementation.

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

        



More information about the jboss-jira mailing list