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

Camel Hystrix component should be transparent for exceptions while `closed` and not using fallback

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Incomplete
    • Affects Version/s: 2.19.4
    • Fix Version/s: None
    • Component/s: camel-hystrix
    • Labels:
      None
    • Estimated Complexity:
      Moderate

      Description

      Circuit breaker should be transparent when `closed` - so until it is `open` all exceptions should be passed through not wrapped as it happening now (when fallback is disabled)

      Hystrix library always wraps cause with `HystrixRuntimeException` but Java aspect implementation unwraps it and in result annotation based hystrix in Java is transparent.
      And it should behave same way in Camel.

      As it would be big change in existing behaviour I would suggest new parameter `transparent` default to `false`. When set to true then original cause would be re-thrown (as it is implemented in `HystrixCommandAspect` from `hystrix-javanica`)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              HuminiO Oskar Huminiecki
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: