Skip to content
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

Bypass fallback/circuit breaker for BadRequestExceptions from ExecutionHook #456

Conversation

gerrit-hntschl
Copy link
Contributor

Hi,

recently introduced Hystrix into an existing codebase and like it a lot. That codebase uses a custom BusinessException to signal bad user input etc. We would like to automatically wrap the BusinessExceptions into a HystrixBadRequestException to isolate Hystrix-Exception handling and not having to touch all the existing code.
However, turning an Exception into a HystrixBadRequestException inside HystrixCommandExecutionHook#onRunError did not side-step the fallback machinery. This pull request fixes that.

Cheers,
Gerrit

@cloudbees-pull-request-builder

Hystrix-pull-requests #207 SUCCESS
This pull request looks good

@benjchristensen
Copy link
Contributor

On a quick check this looks good. @mattrjacobs can confirm further.

Thanks @gerrit-hntschl

mattrjacobs added a commit that referenced this pull request Jan 7, 2015
…executionhook

Bypass fallback/circuit breaker for BadRequestExceptions from ExecutionHook
@mattrjacobs mattrjacobs merged commit 3ed5995 into Netflix:master Jan 7, 2015
@mattrjacobs
Copy link
Contributor

Yeah, thanks for including the unit test, @gerrit-hntschl! Merging now...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants