[jboss-jira] [JBoss JIRA] (WFWIP-306) Health check response contains default readiness data
Fabio Burzigotti (Jira)
issues at jboss.org
Wed Feb 19 14:55:19 EST 2020
Fabio Burzigotti created WFWIP-306:
--------------------------------------
Summary: Health check response contains default readiness data
Key: WFWIP-306
URL: https://issues.redhat.com/browse/WFWIP-306
Project: WildFly WIP
Issue Type: Bug
Components: MP Health
Reporter: Fabio Burzigotti
Assignee: Jeff Mesnil
Starting from Beta 2 and with current feature branch for MP Health upgrade to 2.2 [1], some tests started to fail, reporting unexpected content in JSON response.
When no readiness health check procedures are defined for a given deployment - the returned JSON payload contains a "default" health check readiness object, conventionally named as "ready-deployment." + <archive-name>
This change is not documented in the Analysis document: https://github.com/wildfly/wildfly-proposals/pull/284
# Arquillian deployment with a single HealthCheck implementation with _liveness_ health check procedure.
1. feature branch [1]
```
//health
{
"status": "UP",
"checks": [
{
"name": "live",
"status": "UP",
"data": {
"key": "value"
}
},
{
"name": "ready-deployment.HealthTest.war",
"status": "UP"
}
]
}
//live
{
"status": "UP",
"checks": [
{
"name": "live",
"status": "UP",
"data": {
"key": "value"
}
}
]
}
//ready
{
"status": "UP",
"checks": [
{
"name": "ready-deployment.HealthTest.war",
"status": "UP"
}
]
}
```
2. here's the result for the same call against Wildfly 19 Beta 1:
```
//health
{
"status": "UP",
"checks": [
{
"name": "live",
"status": "UP",
"data": {
"key": "value"
}
}
]
}
//live
{
"status": "UP",
"checks": [
{
"name": "live",
"status": "UP",
"data": {
"key": "value"
}
}
]
}
//ready
{
"status": "UP",
"checks": []
}
```
[1]
https://github.com/jmesnil/wildfly/commits/WFLY-13048_upgrade_microprofile-health_2.2
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
More information about the jboss-jira
mailing list