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)

Reply via email to