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 2021/01/16 16:46:00 UTC

[jira] [Commented] (KARAF-6998) Karaf 4.3 Configurations with array property values calls @modified every 2 seconds

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

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

For the json fileinstall issue, yes, it's the already know issue (KARAF-6924). It will be fixed for 4.3.1.

> Karaf 4.3 Configurations with array property values calls @modified every 2 seconds
> -----------------------------------------------------------------------------------
>
>                 Key: KARAF-6998
>                 URL: https://issues.apache.org/jira/browse/KARAF-6998
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf
>    Affects Versions: 4.3.0
>            Reporter: Scott Ortel
>            Priority: Major
>
> Configurations created with configadmin in 4.3 have two issues:
> 1) The configuration is always persisted as JSON by the JsonConfigInstaller in 'karaf.etc' and is therefore watched by the file installer.  It seems this behavior should be governed by the 'felix.cm.dir' setting,  which would allow these persisted configurations to be placed elsewhere or not at all.  This differs from the .cfg CM persistence behavior.
> 2) When JsonConfigInstaller examines the configuration and compares it to the existing one (setConfig() line 83), by performing a simple .equals() on the 'old' and 'properties' hash tables.  This does not property handle property values that are arrays (valid in OSGi 7).  As you know a map simply compares the key values using .equals, which for arrays is '=='.  This causes the configuration to always appear to be modified and the associated component is deactivated/activated/modified every 2 seconds.
>  
> Thank you for Karaf and for considering this issue.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)