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

Camel hystrix does not handle exceptions properly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.18.2, 2.18.3, 2.19.0
    • 2.18.4, 2.19.1, 2.20.0
    • camel-hystrix
    • None
    • spring boot 1.4.2

    • Patch Available
    • Unknown
    • Regression
    • Patch

    Description

      Exceptions in the route executed by Hystrix are not propagated to Hystrix itself and main features such as "circuit open" are not available, when errors pack up. The scenario was working with fallbackEnabled="true" in 2.18.1.
      I have prepared a JUnit test: https://github.com/anton-k11/camel/blob/cffa13cb8106731ba94aaff85a9dd81715315306/components/camel-hystrix/src/test/java/org/apache/camel/component/hystrix/processor/HystrixCircutExceptionTest.java
      The test works fine if the IOException on line 110 is comment out and instead a Thread.sleep is used to simulate timeout.

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              anton_k11 Anton Krosnev
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: