-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
@Liveness probe doesn't work with @Path #10720
Comments
Hm, I wonder what is the use case for annotating a health check with |
my usecase is that I have a variable that I used to set the return as UP and DOWN. Mostly for testing or disabling a probe. I use the endpoint to change that value |
Anyway, I found the problem - JAX-RS root resources are automatically annotated with You'll need to use a separate bean for the healh check, inject the bean in the resource and change its state via the endpoint methods. |
Perhaps we just want to log a warning when |
It's not unreasonable for users to expect these annotations to work together, so let's be explicit that they don't. Resolves: quarkusio#10720
It's not unreasonable for users to expect these annotations to work together, so let's be explicit that they don't. Resolves: quarkusio#10720
It's not unreasonable for users to expect these annotations to work together, so let's be explicit that they don't. Resolves: quarkusio#10720
Warn when JAX-RS @path is used along with MP Health annotations
Quarkus 1.6.0.FINAL
the health probe annoted with @Liveness and @path won't be returned when we call http://localhost:8080/health/
I took the example : quarkus-quickstarts\microprofile-health-quickstart
and when I do
mvn quarkus:dev
http://localhost:8080/health/
the output is :
but if I add @path in a class : SimpleHealthCheck that have @Liveness, the output became
The text was updated successfully, but these errors were encountered: