-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarify HystrixBadRequestException and ExceptionNotWrappedByHystrix #1536
Comments
Hi, Allong the same lines I would not expect the fallback in UnwrappedHystrixBadRequestExceptionFallback either. Unfortunately I'm not able to dive in the code atm. |
Then we need to clarify UPD: I've tested on the latest release. @tbvh is right. Exception is not executed in case of UPD2: I'll provide tests and code to show that and it will be up to you guys to decide. |
Let me share my opinion regarding this feature. Just by looking at name
Regarding fallback suppression I'd like to have a separate annotation, e.g. Regarding
|
@dmgcodevil That's an interesting way of looking at it that I hadn't considered. It seems very close to 2 questions:
|
I'm accepting #1567. If we should continue discussing the semantics of the other exception type, please open up a new issue. |
This is related to #1503 and #1414
So my question. Right now exceptions that implement ExceptionNotWrappedByHystrix behave like exceptions wrapped in HystrixBadRequestException. E.g. they do not trigger fallback logic.
For my understanding the goal of #1503 was to unwrap exceptions wrapped in HystrixBadRequestException but not change the logic itself. Something like:
if it is an exception that implements ExceptionNotWrappedByHystrix and no fallback is awailable, throw it. Otherwise call fallback.
if it is an exception that implements ExceptionNotWrappedByHystrix wrapped in HystrixBadRequestException throw it without triggering fallback.
Sample:
The text was updated successfully, but these errors were encountered: