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

Make CompositeHealthCheck use HealthCheckExecutor for parallel execution

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Health Check Core 1.1.0
    • None
    • Health Check
    • None

    Description

      As the CompositeHealthCheck is used fairly heavily in the well-known product ([1] & [2]) it would be good to make the parallel execution available for the CompositeHealthCheck as well (this would also be in line with the web console that is already using the HealthCheckExecutor).

      The attached patch

      • uses the HealthCheckExecutor (shortening the implementation of the CompositeHealthCheck.execute() for quite a bit)
      • needs to detect cycles in the configuration in a different way (the ThreadLocal does not work anymore)
      • comes with a unit test that tests both the execution and the cycle detection

      [1] http://localhost:4502/system/sling/monitoring/mbeans/org/apache/sling/healthcheck/HealthCheck/systemchecks.json
      [2] http://localhost:4502/libs/granite/operations/content/hr.html/system/sling/monitoring/mbeans/org/apache/sling/healthcheck/HealthCheck/securitychecks

      Attachments

        Activity

          People

            bdelacretaz Bertrand Delacretaz
            henzlerg Georg Henzler
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: