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

When Health check written in Java fails, log information is unclear #886

Open
pablow91 opened this issue Apr 13, 2021 · 0 comments
Open

Comments

@pablow91
Copy link

Versions used

Akka version: 2.6.13
Akka-management: 1.0.9

Expected Behavior

When having custom health check written in Java e.g. com.test.HealthCheck, which fails, then expected behavior when asking for readiness would to see following log:

Not Healthy: Check [com.test.HealthCheck] not ok

Actual Behavior

Currently, log is:

Check [akka.management.internal.HealthChecksImpl$$Lambda$1599/0x0000000100e84040] not ok

Using Scala Function0<Future<Boolean>> instead of Supplier can be used as workaround.

Internally it looks that Java Supplier is converted and then the name of the original class is gone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants