Details
-
Bug
-
Status: Resolved
-
Medium
-
Resolution: Done
-
None
-
None
Description
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.
Attachments
| # | Subject | Branch | Project | Status | CR | V |
|---|---|---|---|---|---|---|
| 92474,2 | Upgrade SCR to 2.1.24 | 6.0.x | odlparent | Status: MERGED | +2 | +1 |
| 92481,3 | Upgrade SCR to 2.1.24 | 7.0.x | odlparent | Status: MERGED | +2 | +1 |
| 92546,1 | Upgrade SCR to 2.1.24 | master | odlparent | Status: MERGED | +2 | +1 |