-
Bug
-
Resolution: Done
-
Medium
-
None
-
None
Felix SCR 4.1.20 (and before), as bundled with karaf-4.2.9, fails to enforce correct lifecycle on factory-defined component configurations.
In particular, SCR will deactivate such a component configuration when its services become unused, such as going through a getService/ungetService cycle. This mirrors the lifecycle of a Delayed Component, not a Factory component – see sections 112.5.4 and 112.5.5 of OSGi Compendium spec.
This issue tracks two things:
- the upstream fix as tracked in https://issues.apache.org/jira/browse/FELIX-6315 and its adoption in odlparent
- a stop-gap mitigation
The mitigation comes in form of https://issues.apache.org/jira/browse/FELIX-3039, i.e. preventing Felix from deactivating unused delayed components.