Replies: 1 comment
-
Spring gateway case is complex, and due to various use scenarios, some bugs show up from time to time. You could send a pull request for your fix to help others, and explain why you change in this way. Usually, we think fail-back and retry should be another exit span as it may call RPC again. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Search before asking
Description
The project will throw exception 'Can not do async finish for the span repeatedly' when the request is fallback by hystrix.
After some code debug, I find the method
asyncFinish()
will be invoked twice with the same span inDispatcherHandlerHandleMethodInterceptor.java
due to hystrix fallback.I have solved this in my way by adding flag in ServerWebExchange when the hystrix fallback occurred and create the span according to
ServerWebExchange
attribute flag. The test code is as follows:I do not think is a good way to solve the problem. Is there a better way or can anyone give me some advice to solve this problem.
Use case
No response
Related issues
No response
Are you willing to submit a PR?
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions