[
https://issues.apache.org/jira/browse/SLING-4416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14528131#comment-14528131
]
Carsten Ziegeler commented on SLING-4416:
-----------------------------------------
[~bdelacretaz] Is it acceptable to change the result type from CRITICAL to
HEALTH_CHECK_ERROR? (not questioning just verifying)
> 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
> Assignee: Bertrand Delacretaz
> Fix For: Health Check Core 1.2.4
>
> 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)