-
Notifications
You must be signed in to change notification settings - Fork 3k
Description
Describe the bug
In my Quarkus application, I have a Wellness class implementing HealthCheck with a log inside. If I do a call on /q/health/well, I have my log in the console. But if I open the Dev-UI, HealthCheck is called every 3 seconds unless I close the Dev-UI, and I cannot disable this behavior.
Expected behavior
When I open the dev-ui, the HealthCheck should not be called every 3 seconds, like in the previous version quarkus (3.23.X). Or at least, if i close the Dev-UI I should return in the same behavior than before opening the Dev-UI.
Actual behavior
When I open the Dev-UI, the HealthCheck is called every 3 seconds. If I close the Dev-UI the behavior persist.
Console :
2025-07-04 10:39:36,215 INFO [io.quarkus] (Quarkus Main Thread) XXX 1.0.0-SNAPSHOT on JVM (powered by Quarkus 3.24.1) started in 3.030s. Listening on: http://localhost:9000
2025-07-04 10:39:36,218 INFO [io.quarkus] (Quarkus Main Thread) Profile dev activated. Live Coding activated.
2025-07-04 10:39:36,218 INFO [io.quarkus] (Quarkus Main Thread) Installed features: [cdi, smallrye-context-propagation, smallrye-health, vertx]
------ OPEN DEV-UI ------
2025-07-04 10:40:21,883 INFO [org.acm.hea.CustomHealthCheck] (vert.x-worker-thread-1) Called CustomHealthCheck
2025-07-04 10:40:21,883 INFO [org.acm.hea.CustomHealthCheck] (vert.x-worker-thread-2) Called CustomHealthCheck
2025-07-04 10:40:24,883 INFO [org.acm.hea.CustomHealthCheck] (vert.x-worker-thread-1) Called CustomHealthCheck
2025-07-04 10:40:27,878 INFO [org.acm.hea.CustomHealthCheck] (vert.x-worker-thread-1) Called CustomHealthCheck
2025-07-04 10:40:30,884 INFO [org.acm.hea.CustomHealthCheck] (vert.x-worker-thread-1) Called CustomHealthCheck
2025-07-04 10:40:33,877 INFO [org.acm.hea.CustomHealthCheck] (vert.x-worker-thread-1) Called CustomHealthCheck
2025-07-04 10:40:36,872 INFO [org.acm.hea.CustomHealthCheck] (vert.x-worker-thread-1) Called CustomHealthCheck
2025-07-04 10:40:39,875 INFO [org.acm.hea.CustomHealthCheck] (vert.x-worker-thread-1) Called CustomHealthCheck
How to Reproduce?
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-smallrye-health</artifactId>
</dependency>
import io.quarkus.logging.Log;
import jakarta.enterprise.context.ApplicationScoped;
import org.eclipse.microprofile.health.HealthCheck;
import org.eclipse.microprofile.health.HealthCheckResponse;
import io.smallrye.health.api.Wellness;
@Wellness
@ApplicationScoped
public class CustomHealthCheck implements HealthCheck {
@Override
public HealthCheckResponse call() {
Log.infov("Called CustomHealthCheck");
return HealthCheckResponse
.named("CustomHealthCheck")
.build();
}
}
Launch the application with mvn quarkus:dev, open the Dev-UI, observe log generated every 3 seconds, close the Dev-UI, observe log generated every 3 seconds.
Output of uname -a
or ver
No response
Output of java -version
21.0.7
Quarkus version or git rev
3.24.1
Build tool (ie. output of mvnw --version
or gradlew --version
)
3.8.7
Additional information
No response