felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Felix Meschberger (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FELIX-3554) Prevent same configuration to be delivered multiple times
Date Thu, 14 Jun 2012 19:47:43 GMT
Felix Meschberger created FELIX-3554:
----------------------------------------

             Summary: 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

        

Mime
View raw message