You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Alexandru Neaţă (Jira)" <ji...@apache.org> on 2023/07/25 09:41:00 UTC
[jira] [Created] (CAMEL-19646) camel-health reports UP when route controller is used and routes fail
Alexandru Neaţă created CAMEL-19646:
---------------------------------------
Summary: camel-health reports UP when route controller is used and routes fail
Key: CAMEL-19646
URL: https://issues.apache.org/jira/browse/CAMEL-19646
Project: Camel
Issue Type: Bug
Components: camel-health
Affects Versions: 3.20.6, 4.0-RC2
Reporter: Alexandru Neaţă
When route-controller is used to start routes in a safe manner and one of the routes fails it still reports the status as UP.
{code:yaml}
camel:
springboot:
route-controller-supervise-enabled: true
route-controller-unhealthy-on-exhausted: true
route-controller-back-off-max-attempts: 3
{code}
> No brokers defined, route will fail after the route controller gives up.
{code:java}
from("kafka:hello")
.routeId("kafka")
.log("Hello Kafka");
{code}
While the route controller tries to restart the route, the status will be correct, `DOWN`.
After it gives up, it turns to an incorrect state, `UP`.
Example project: https://github.com/alex-nt/issues-java/tree/main/camel/camel-health
--
This message was sent by Atlassian Jira
(v8.20.10#820010)