You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Carsten Ziegeler (JIRA)" <ji...@apache.org> on 2017/08/02 09:19:00 UTC

[jira] [Resolved] (FELIX-5669) Registering a PersistenceManager causes duplicate caches

     [ https://issues.apache.org/jira/browse/FELIX-5669?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carsten Ziegeler resolved FELIX-5669.
-------------------------------------
    Resolution: Fixed

Thanks [~brandan.jeter] for reporting and your patch.
I've applied a slightly modified version in rev 1803786 in the R7 branch for config admin. The difference is just that any proxy, whether caching or non caching is continued to be used.
Please cross check


> Registering a PersistenceManager causes duplicate caches
> --------------------------------------------------------
>
>                 Key: FELIX-5669
>                 URL: https://issues.apache.org/jira/browse/FELIX-5669
>             Project: Felix
>          Issue Type: Bug
>    Affects Versions: configadmin-1.8.12
>            Reporter: Brandan Jeter
>            Assignee: Carsten Ziegeler
>             Fix For: configadmin-1.9.0
>
>
> When registering a PersistenceManager, the next call to a method in ConfigurationManager will call getPersistenceManagers(). Instead of preserving the existing CachingPersistenceManagerProxy that wraps the default FilePersistenceManager, ConfigurationManager creates a brand new one. But previous Configuration objects still have reference to the old CachingPersistenceManagerProxy, so when one of them gets deleted/updated it does not get deleted/updated in the ConfigurationManager's reference.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)