felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Jencks (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FELIX-3826) [DS] race in enabling components with factory pid
Date Sun, 10 Feb 2013 07:53:13 GMT

     [ 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

Mime
View raw message