Uploaded image for project: 'odlparent'
  1. odlparent
  2. ODLPARENT-242

Service Component Runtime does not conform to R6 spec w.r.t Factory Components

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • 8.0.0, 7.0.6, 6.0.12
    • None
    • Karaf
    • 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:

      1. the upstream fix as tracked in https://issues.apache.org/jira/browse/FELIX-6315 and its adoption in odlparent
      2. 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.

            rovarga Robert Varga
            rovarga Robert Varga
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: