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

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Incomplete
    • 2.19.4
    • None
    • camel-hystrix
    • None
    • 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

            Unassigned Unassigned
            HuminiO Oskar Huminiecki
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: