You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2012/05/03 17:44:49 UTC

[jira] [Created] (KARAF-1434) Cellar ConfigLocalListener should broadcast cluster event

Jean-Baptiste Onofré created KARAF-1434:
-------------------------------------------

             Summary: Cellar ConfigLocalListener should broadcast cluster event
                 Key: KARAF-1434
                 URL: https://issues.apache.org/jira/browse/KARAF-1434
             Project: Karaf
          Issue Type: Bug
          Components: cellar-config
    Affects Versions: cellar-2.2.4
            Reporter: Jean-Baptiste Onofré
            Assignee: Jean-Baptiste Onofré
             Fix For: cellar-3.0.0, cellar-2.2.4


The Cellar ConfigLocalListener is listening to all ConfigAdmin local event and update the distributed map.

It should also broadcast a cluster event when updating the map in order to allow the other nodes to update their local config admin.

However, if so, we have a "infinite" loop where the local listener send a cluster event, the event handler update the local config admin, which send a cluster event, etc.

I will find a way to "detect" where the event comes from.

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

       

[jira] [Commented] (KARAF-1434) Cellar ConfigLocalListener should broadcast cluster event

Posted by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1434?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13270267#comment-13270267 ] 

Jean-Baptiste Onofré commented on KARAF-1434:
---------------------------------------------

The LocalConfigurationListener should check if the config has been updated by the ConfigEventHandler or by the user.

It means that the ConfigEventHandler could add a reserved property (cellar.sync) containing a timestamp when updating the config admin service (Felix FileInstall does the same using fileinstall.file property to know the origin of the config file).

The LocalConfigurationListener could check if the property exists and if the timestamp is not in the last 2 seconds for instance. If the property is not there or the timestamp timeout, the LocalConfigurationListener broadcast the cluster event, else, it doesn't.
                
> Cellar ConfigLocalListener should broadcast cluster event
> ---------------------------------------------------------
>
>                 Key: KARAF-1434
>                 URL: https://issues.apache.org/jira/browse/KARAF-1434
>             Project: Karaf
>          Issue Type: Bug
>          Components: cellar-config
>    Affects Versions: cellar-2.2.4
>            Reporter: Jean-Baptiste Onofré
>            Assignee: Jean-Baptiste Onofré
>             Fix For: cellar-3.0.0, cellar-2.2.4
>
>
> The Cellar ConfigLocalListener is listening to all ConfigAdmin local event and update the distributed map.
> It should also broadcast a cluster event when updating the map in order to allow the other nodes to update their local config admin.
> However, if so, we have a "infinite" loop where the local listener send a cluster event, the event handler update the local config admin, which send a cluster event, etc.
> I will find a way to "detect" where the event comes from.

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

       

[jira] [Resolved] (KARAF-1434) Cellar ConfigLocalListener should broadcast cluster event

Posted by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-1434?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Onofré resolved KARAF-1434.
-----------------------------------------

    Resolution: Fixed
    
> Cellar ConfigLocalListener should broadcast cluster event
> ---------------------------------------------------------
>
>                 Key: KARAF-1434
>                 URL: https://issues.apache.org/jira/browse/KARAF-1434
>             Project: Karaf
>          Issue Type: Bug
>          Components: cellar-config
>    Affects Versions: cellar-2.2.4
>            Reporter: Jean-Baptiste Onofré
>            Assignee: Jean-Baptiste Onofré
>             Fix For: cellar-3.0.0, cellar-2.2.4
>
>
> The Cellar ConfigLocalListener is listening to all ConfigAdmin local event and update the distributed map.
> It should also broadcast a cluster event when updating the map in order to allow the other nodes to update their local config admin.
> However, if so, we have a "infinite" loop where the local listener send a cluster event, the event handler update the local config admin, which send a cluster event, etc.
> I will find a way to "detect" where the event comes from.

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