Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: If a HealthCheck fails the check disappears in the results (non-clustered) or the whole request fails (clustered) #291

Open
1 task done
pk-work opened this issue Mar 22, 2023 · 0 comments
Labels
bug Something isn't working needs triage This issue needs to be investigated and confirmed as a valid

Comments

@pk-work
Copy link
Contributor

pk-work commented Mar 22, 2023

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]

return AsyncHelper.allComposite(checkList).map(v -> new JsonArray(

Expected Behavior

  1. If a HealthCheck fails, I should see this in the result.
  2. If a HealthCheck fails, I should see the results of other HealthChecks.
  3. HealthCheckVerticle.retrieveData(..) should re-use getLocalHealthCheckResults to remove code redundancy.

Steps To Reproduce

No response

Environment

- OS:
- Java:
- NeonBee:

Relevant log output

No response

Anything else?

No response

@pk-work pk-work added bug Something isn't working needs triage This issue needs to be investigated and confirmed as a valid labels Mar 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage This issue needs to be investigated and confirmed as a valid
Projects
None yet
Development

No branches or pull requests

1 participant