You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Felix Meschberger (JIRA)" <ji...@apache.org> on 2012/07/05 14:44:34 UTC

[jira] [Commented] (FELIX-3554) Prevent same configuration to be delivered multiple times

    [ https://issues.apache.org/jira/browse/FELIX-3554?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13407059#comment-13407059 ] 

Felix Meschberger commented on FELIX-3554:
------------------------------------------

Rev. 1357578: Check configuration revision counter before providing configuration. Also do not remove the same configuration multiple times

                
> Prevent same configuration to be delivered multiple times
> ---------------------------------------------------------
>
>                 Key: FELIX-3554
>                 URL: https://issues.apache.org/jira/browse/FELIX-3554
>             Project: Felix
>          Issue Type: Task
>          Components: Configuration Admin
>    Affects Versions:  configadmin-1.2.8
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>             Fix For: configadmin-1.6.0
>
>
> It may happen, that configuration is delivered to a ManagedService[Factory] twice depending some timing issues.
> Here's the thing:
>    * Thread1: Configuration pid1 is created
>    * Thread1: ManagedServiceUpdate is scheduled (but not run yet)
>    * Thread1: ManagedService for pid1 is registered and configuration provisioning scheduled (but not run yet)
>    * Thread2: Configuration update for pid1 is dispatched to ManagedService on separate thread
>    * Thread2: ManagedService is updated with configured due to its registration
> The second configuration update is not completely wrong but is not needed and might be prevented if the configuration revision counter would be checked before providing the configuration to the ManagedService.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira