-
Notifications
You must be signed in to change notification settings - Fork 779
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
Caused by: java.lang.RuntimeException: Hystrix circuit short-circuited and is OPEN for HystrixBadRequestException #84
Comments
Can you tell me how to simulate the issue with your sample? |
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
Please find the minimal steps to simulate the behavior:-
|
If |
Do you think, Is there a way to avoid calling fallback and breaking circuit for 4xx client errors. 1.
try {
// calling client here
catch(HystrixBadRequestException ex) {
throw ex;
}
2. or Directly throwing an exception from feignErrorDecoder for 4xx errors |
Can you try this? Netflix/Hystrix#1414 |
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue. |
I am using Feign-client along with Hystrix and i have custom error decoder where i am returning HystrixBadRequestException only for client errors and catching the exceptions in a method TestController:getInfo() as below. In this case, it should not trigger a fallback and should not open the circuit(i.e should disable the circuit breaker), but is not working as expected. and in javadoc also mentioned few comments about it.
Link: https://netflix.github.io/Hystrix/javadoc/com/netflix/hystrix/exception/HystrixBadRequestException.html
Please find the attached sample source code.
feign-client-fallback-test.zip
Here, from feign-client-test project, you can use RestClient to simulate an issues.
The text was updated successfully, but these errors were encountered: