You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Georg Henzler (JIRA)" <ji...@apache.org> on 2015/02/13 08:52:11 UTC

[jira] [Updated] (SLING-4416) Improve HC Message/Status if a HC implementation throws an exception

     [ https://issues.apache.org/jira/browse/SLING-4416?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Georg Henzler updated SLING-4416:
---------------------------------
    Attachment: SLING-4416-Improved-Exception-Handling.patch

> Improve HC Message/Status if a HC implementation throws an exception
> --------------------------------------------------------------------
>
>                 Key: SLING-4416
>                 URL: https://issues.apache.org/jira/browse/SLING-4416
>             Project: Sling
>          Issue Type: Improvement
>          Components: Health Check
>    Affects Versions: Health Check Core 1.1.2
>            Reporter: Georg Henzler
>         Attachments: SLING-4416-Improved-Exception-Handling.patch
>
>
> At the moment, if a HC throws an exception, both status and and message are not ideal:
> {code}
> CRITICAL    Exception during execution of org.apache.sling.hc.core.impl.executor.HealthCheckFuture$1@688ec41b: java.lang.NullPointerException 
> {code}
> The attached patch changes the behaviour to the following:
> {code}
> HEALTH_CHECK_ERROR    Exception during execution of 'My HC Name': java.lang.NullPointerException 
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)