Uploaded image for project: 'Aries'
  1. Aries
  2. ARIES-1732

blueprint-cm - race condition

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Blueprint
    • Labels:
      None

      Description

      There is a possible race condition in `org.apache.aries.blueprint.compendium.cm.CmPropertyPlaceholder` and `org.apache.aries.blueprint.compendium.cm.ManagedObjectManager`

      There are situations where `ConfigAdmin` service might not be available and returns `null` when queried for the initial `config`.
      In other cases instead, `CmPropertyPlaceholder` receives updates from `ConfigAdmin` thread even before it has completed it's initialization.

      The code doesn't discriminate if `config` is `null` or not, and treats any value as valid, marking `CmPropertyPlaceholder` instance as initialized.

      This leads to spotty errors.

      The suggested fix, that simply prevents that `update(null)` invocation mark the `CmPropertyPlaceholder` instance as initialized, addresses the issue.

      Code here:
      https://github.com/apache/aries/compare/trunk...paoloantinori:ENTESB-7141?expand=1

        Attachments

        Issue Links

          Activity

            People

            • Assignee:
              ggrzybek Grzegorz Grzybek
              Reporter:
              paolo.antinori Paolo Antinori

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment