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

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

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Health Check Core 1.1.2
    • Fix Version/s: Health Check Core 1.2.4
    • Component/s: Health Check
    • Labels:
      None
    • Flags:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: