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

Improve HC Message/Status if a HC implementation throws an exception

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Health Check Core 1.1.2
    • Health Check Core 1.2.4
    • Health Check
    • None
    • Patch

    Description

      At the moment, if a HC throws an exception, both status and and message are not ideal:

      CRITICAL    Exception during execution of org.apache.sling.hc.core.impl.executor.HealthCheckFuture$1@688ec41b: java.lang.NullPointerException 
      

      The attached patch changes the behaviour to the following:

      HEALTH_CHECK_ERROR    Exception during execution of 'My HC Name': java.lang.NullPointerException 
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: