Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-19646

camel-health reports UP when route controller is used and routes fail

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.20.6, 3.21.0, 4.0-RC2
    • 3.20.7, 3.21.1, 4.0.0
    • camel-health
    • None
    • Unknown

    Description

      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.

      camel: 
        springboot: 
          route-controller-supervise-enabled: true
          route-controller-unhealthy-on-exhausted: true
          route-controller-back-off-max-attempts: 3
      

      No brokers defined, route will fail after the route controller gives up.

              from("kafka:hello")
                      .routeId("kafka")
                      .log("Hello Kafka");
      

      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

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              alex-nt Alexandru Neaţă
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: