Tom Watson created FELIX-6581:
---------------------------------
Summary: 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
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)