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

Camel hystrix does not handle exceptions properly

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.18.2, 2.18.3, 2.19.0
    • Fix Version/s: 2.18.4, 2.19.1, 2.20.0
    • Component/s: camel-hystrix
    • Labels:
      None
    • Environment:

      spring boot 1.4.2

    • Patch Info:
      Patch Available
    • Estimated Complexity:
      Unknown
    • Regression:
      Regression
    • Flags:
      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

              • Assignee:
                davsclaus Claus Ibsen
                Reporter:
                anton_k11 Anton Krosnev
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: