[jboss-jira] [JBoss JIRA] (WFWIP-80) Log warning when MP Health reports DOWN

Rostislav Svoboda (JIRA) issues at jboss.org
Mon Aug 6 10:58:00 EDT 2018


    [ https://issues.jboss.org/browse/WFWIP-80?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13615269#comment-13615269 ] 

Rostislav Svoboda commented on WFWIP-80:
----------------------------------------

Ideal place would be https://github.com/smallrye/smallrye-health/blob/master/implementation/src/main/java/io/smallrye/health/SmallRyeHealthReporter.java#L64
But there is no logging in smallrye-health.

On WF side this could be handled in HealthContextService and CheckOperation classes
https://github.com/jmesnil/wildfly/blob/WFLY-10711_health_check/microprofile/health-smallrye/src/main/java/org/wildfly/extension/microprofile/health/HealthContextService.java#L112
https://github.com/jmesnil/wildfly/blob/WFLY-10711_health_check/microprofile/health-smallrye/src/main/java/org/wildfly/extension/microprofile/health/CheckOperation.java#L61

> Log warning when MP Health reports DOWN
> ---------------------------------------
>
>                 Key: WFWIP-80
>                 URL: https://issues.jboss.org/browse/WFWIP-80
>             Project: WildFly WIP
>          Issue Type: Enhancement
>          Components: MP Health
>            Reporter: Rostislav Svoboda
>            Assignee: Jeff Mesnil
>
> Enhance MP Health functionality to log warning when MP Health reports DOWN.
> This can be useful when working on investigation / retrospective analysis.
> Open Liberty prints following warning when http://localhost:9080/health reports DOWN
> {code}
> [WARNING ] CWMH0051W: The class com.ibm.ws.microprofile.health.impl.HealthCheckResponseImpl implementing HealthCheckResponse
>   in the microprofile-health application in module microprofile-health.war, 
>   reported a DOWN outcome DOWN with data Optional[{availability=not available}].
> {code}



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list