akka-management icon indicating copy to clipboard operation
akka-management copied to clipboard

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

Open pablow91 opened this issue 4 years ago • 0 comments

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.

pablow91 avatar Apr 13 '21 11:04 pablow91