[ https://issues.apache.org/jira/browse/CAMEL-20242?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rinaldo Pitzer Júnior updated CAMEL-20242: ------------------------------------------ Summary: camel-routes health check reports UP right before routes were attempted to be loaded when using supervising route controller (was: camel-routes health check reports UP right before routes are loaded using supervising route controller) > camel-routes health check reports UP right before routes were attempted to be > loaded when using supervising route controller > ---------------------------------------------------------------------------------------------------------------------------- > > Key: CAMEL-20242 > URL: https://issues.apache.org/jira/browse/CAMEL-20242 > Project: Camel > Issue Type: Improvement > Components: camel-health, camel-microprofile-health > Affects Versions: 4.1.0 > Reporter: Rinaldo Pitzer Júnior > Assignee: Luca Burgazzoli > Priority: Minor > > The default status for the camel-routes health checks is UP, and it is used > if none of the routes is reporting DOWN. > When using the Supervising route controller, if the health check endpoint is > called before the routes are started, the default status UP is reported. > This means that the application reports as Ready even before the routes were > attempted to be started. > Even in scenarios where the route is certainly going to fail to startup, > [like this > one|https://github.com/rinaldodev/camel-playground/blob/7a30e964ba2ba233db347771d088b721cc331b82/src/main/java/com/github/lburgazzoli/MyRoutes.java], > there is a brief period where the application reports as Ready. > This brief period is long enough for sometimes to cause Camel K to report an > Integration as Ready before it really is, which also makes [some tests flaky > | https://github.com/apache/camel-k/issues/4922]. -- This message was sent by Atlassian Jira (v8.20.10#820010)