-
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
HystrixCommand getFailedExecutionException().getMessage() causes Hystrix circuit short-circuited #1013
Comments
I figured out the issue. When you have debug logging turned on using logging.level.=DEBUG, the real issue shows up. Its just a NPE that the Hystrix code is hiding and showing as a different exception.
|
My interpretation of the above is that returning null as a |
The issue was that when the circuit breaker is open, getFailedExecutionException() returns NULL and I was not doing a null check before using it. |
Ah, I see. This was brought up in #974 as well. A path forward here is:
@dmgcodevil Any updates on that issue? |
@mattrjacobs javanica uses regular getaExecutionException from hystrix core so it should be fine. |
|
Is there any changes in terms how we get execution exception now ? If not, ones the fix will be in place javanica will pick it up and issue should go away without any specific changes, am I right ? |
Yes. I left the semantics of The new method ( I'm not sure exactly how javanica is wiring up the exception, but switching to |
Oh, I see, then yes, I need to tweak javanica to use |
Implementation for feature request #1013
@mattrjacobs I guess we can close this issue because 1155 has been resolved. however, the issue herein mentioned isn't releated to javanica because reporter uses vanilla Hystrix. |
Closing out - I don't believe there's anything more to do here. Please re-open if there's more to discuss |
I am running a Spring Boot application that make use of Hystrix commands. I have a HystrixCommand where in the getFallback() method, I am calling getFailedExecutionException().getMessage(). When this gets executed more then X times (say 20 failed requests), the Hystrix command stops executing the fallback method and instead the container throws a 500 Internal Server Error. Other then not calling this method (which is a valid workaround), how do I resolve this? What is causing this exception?
Here is the exception
Attached is the full compressed project (only 3 files)
ShortCicuitDemo.zip
The text was updated successfully, but these errors were encountered: