[Bug]: If a HealthCheck fails the check disappears in the results (non-clustered) or the whole request fails (clustered)
Opened this issue · 0 comments
pk-work commented
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
NeonBee can't handle failing HealthChecks.
Local
In non-clustered mode the method getLocalHealthCheckResults is called which simply omits failed HealthChecks.
...
asyncCheckResults.stream().filter(Future::succeeded)
...
Cluster
In clustered mode the method collectHealthCheckResults is called which sends requests to all HealthCheckVerticles. But as soon as one HealthCheck fails the HealthCheckVerticle will respond with a failure, because a AsyncHelper.allComposite
collector is used to collect the results [1].
[1]
Expected Behavior
- If a HealthCheck fails, I should see this in the result.
- If a HealthCheck fails, I should see the results of other HealthChecks.
HealthCheckVerticle.retrieveData(..)
should re-usegetLocalHealthCheckResults
to remove code redundancy.
Steps To Reproduce
No response
Environment
- OS:
- Java:
- NeonBee:
Relevant log output
No response
Anything else?
No response