You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "David Jencks (JIRA)" <ji...@apache.org> on 2013/02/10 08:53:13 UTC

[jira] [Updated] (FELIX-3826) [DS] race in enabling components with factory pid

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

David Jencks updated FELIX-3826:
--------------------------------

    Fix Version/s:     (was: scr-1.6.4)
                   scr-1.8.0
    
> [DS] race in enabling components with factory pid
> -------------------------------------------------
>
>                 Key: FELIX-3826
>                 URL: https://issues.apache.org/jira/browse/FELIX-3826
>             Project: Felix
>          Issue Type: Bug
>          Components: Declarative Services (SCR)
>    Affects Versions: scr-1.6.2
>            Reporter: David Jencks
>            Assignee: David Jencks
>             Fix For: scr-1.8.0
>
>
> ImmediateComponentHolder.enableComponents has a race condition.  It sets the holder's m_enabled state last after enabling all the components it finds when it starts.  However other threads from config admin could be adding components during this time, and they will never get enabled.  Calling enable on a component twice shouldn't cause a problem, so moving setting m_enabled to the start of enableComponents should fix this.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira