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

Tom Watson updated FELIX-6581:
------------------------------
    Fix Version/s: scr-2.2.6
                       (was: scr-2.2.4)

> When using ds.global.extender the LogManager can leak objects when bundles 
> stopped
> ----------------------------------------------------------------------------------
>
>                 Key: FELIX-6581
>                 URL: https://issues.apache.org/jira/browse/FELIX-6581
>             Project: Felix
>          Issue Type: Bug
>          Components: Declarative Services (SCR)
>            Reporter: Tom Watson
>            Assignee: Tom Watson
>            Priority: Major
>             Fix For: scr-2.2.6
>
>
> When using ds.global.extender the 
> org.apache.felix.scr.impl.logger.LogManager.getLogger(Bundle, String, 
> Class<T>) can get called for bundles that the SCR BundleContext cannot "see". 
>  This will add an entry to the Map 
> org.apache.felix.scr.impl.logger.LogManager.Lock.domains.  The 
> org.apache.felix.scr.impl.logger.LogManager is a BundleListener and always 
> gets added using the SCR BundleContext.  The 
> org.apache.felix.scr.impl.logger.LogManager.bundleChanged(BundleEvent) is 
> then supposed to remove added bundles from the domains map when the bundle is 
> stopped.
> The LogManager bundle listener never gets called for bundles that the SCR 
> BundleContext cannot "see".  This leads to the leak when the bundles are 
> stopped and uninstalled.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to