Reactive Health Check DOWN after update to 1.7.0.Final
See original GitHub issueDescribe the bug Health check for reactive is returning DOWN 2020-08-21 15:52:22,132 INFO [io.sma.health] (vert.x-worker-thread-0) SRHCK01001: Reporting health down status: {“status”:“DOWN”,“checks”:[{“name”:“SmallRye Reactive Messaging”,“status”:“DOWN”,“data”:{“kafka-connector”:“[KO]”}},{“name”:“SmallRye Reactive Messaging”,“status”:“DOWN”,“data”:{“kafka-connector”:“[KO]”}}]}
Expected behavior Return UP
To Reproduce Check the readme in my project below: https://github.com/ivanjunckes/reactive-health-bug
Environment (please complete the following information):
- Output of
uname -a
orver
: Darwin MacBook-Pro-de-Ivan.local 19.6.0 Darwin Kernel Version 19.6.0: Sun Jul 5 00:43:10 PDT 2020; root:xnu-6153.141.1~9/RELEASE_X86_64 x86_64 - Output of
java -version
: openjdk version “11.0.8” 2020-07-14 OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.8+10) OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.8+10, mixed mode) - Quarkus version or git rev: 1.7.0.Final
Issue Analytics
- State:
- Created 3 years ago
- Comments:13 (3 by maintainers)
Top Results From Across the Web
Subscription not set! health check errors - Google Groups
The problem is in SmallRye Reactive Messaging, not in your code. I will fix it. That's a nice use case you have. Yes,...
Read more >Production-ready Features - Spring
To provide custom health information from a reactive API, you can register Spring beans that implement the ReactiveHealthIndicator interface. The following ...
Read more >Apache camel 3.17.0 Release
This release is the new Camel 3.17.0 release. ... camel-jbang - Health Check should report HTTP status codes for DOWN ... Dependency upgrade...
Read more >MeterRegistry (micrometer-core 1.1.0 API) - javadoc.io
MeterRegistry may be used in a reactive context. ... Register a gauge that reports the value of the object after the function valueFunction...
Read more >SDK Release Notes | Couchbase Docs
reactivestreams:reactive-streams:1.0.4. Optional artifacts on top of this SDK version are tested for the following compatibilities: Table 1. Optional Artifact ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Note for others that come to this issue.
quarkus.reactive-messaging.health.enabled=false
is evaluated at build-time, so a config overlay will not have the expected result.@ivanjunckes
Please see https://github.com/smallrye/smallrye-reactive-messaging/issues/690. The duplication is caused by the call to
/health
where both liveness and readiness checks are included. If you change the path to/health/live
(or/health/ready
) you will see only one check. The names will be fixed in the next release.You are adding a dependency on
quarkus-smallrye-reactive-messaging-kafka
which represents a reactive messaging connector to Kafka so I think it makes sense to fail the check if the connection to Kafka is not established. Otherwise, this dependency can be removed. Changing the dependency fromto
so just removing
-kafka
at the end makes the test pass because now we are not adding the dependency on Kafka connector but only on reactive messaging itself. Hopefully, this explains everything 😃