Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Incomplete
-
2.19.4
-
None
-
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`)