Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-4811

Handle OSGi event in a separate thread to prevent being blacklisted by the OSGi Event Admin

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • i18n 2.4.2
    • i18n 2.4.4
    • Extensions
    • None

    Description

      Since Apache Felix blacklists all OSGi Event Handlers which take too long to complete it would be good if all long-running tasks would be executed in a separate thread (like preloading resource bundles).
      Otherwise the JcrResourceBundleProvider might get blacklisted if the instance is under load and in the future is not notified about any changes. The default timeout of Apache Felix is 5 seconds (http://felix.apache.org/documentation/subprojects/apache-felix-event-admin.html).

      Attachments

        1. SLING-4811-v02.patch
          13 kB
          Konrad Windszus

        Activity

          People

            kwin Konrad Windszus
            kwin Konrad Windszus
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: