Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-6609

SCR components and factoryPids random issues

    XMLWordPrintable

Details

    • % %

    Description

      Hard to reproduce bug. Dumping here all the info I have.

      Observed behavior:

      • SCR components, that are bound to a factoryPid do not always process ConfigAdmin updates.

      I have a reproducer that works half of the times, so you need some invocation before seeing the faulty behavior.

      Debugging the code, I tracked it down to when this issue starts to manifest its problem, but not yet understood what generates the issue in first instance.

      The line of code where problem show itself is:

      https://github.com/apache/felix/blob/trunk/scr/src/main/java/org/apache/felix/scr/impl/manager/RegionConfigurationSupport.java#L258-L259

      Where in case of faulty instances, the first equal operation fails, because targetPid does not includes the component id suffix while oldTarget does.

      In the working instances, they are both without the suffix and the comparison returns true.

      Attachments

        Issue Links

          Activity

            People

              pantinor@redhat.com Paolo Antinori
              pantinor@redhat.com Paolo Antinori
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: