[ 
https://issues.apache.org/jira/browse/CAMEL-19646?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen resolved CAMEL-19646.
---------------------------------
    Resolution: Fixed

> 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, 3.21.0, 4.0-RC2
>            Reporter: Alexandru Neaţă
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 3.20.7, 3.21.1, 4.0.0
>
>
> 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