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
Fix #1549, spring-plugins bug #1554
Conversation
ContextManager.stopSpan(); may not execute
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that this is not the root cause about #1549, I suspect that the problem is caused by that the plugin only stores the Request and does not store Response。because of the plugin had check if Request is empty when creating span in beforeMethod and the plugin check the Response is empty when finish the span in afterMethod.
Can you provide more detail or another fix for this? If plugin checked, where does the span come from? Any other plugin leak the span? |
@ylywyn Because the |
yes, this is not the root cause about #1549. context has been removed before AbstractMethodInterceptor::afterMethod. callstack like this: 5: AbstractMethodInterceptor::afterMethod context[] is null . ContextManager.stopSpan() can't be call 3: InvokeForRequestInterceptor::afterMethod context[SW_REQUEST] -> context[] 1: InvokeForRequestInterceptor::beforeMethod context[SW_REQUEST] -> context[SW_REQUEST, SW_RESPONSE] |
RUNTIME_CONTEXT management (put and remove) seems to have some problems. |
I know it, @ylywyn just remove the clear |
Moving ContextManager.stopSpan() to finally{} can solve my problem. |
The 5.0.0-RC will release in this weekend. I hope that this issue will be fixed in this issue , And could you update this PR? @ylywyn |
ContextManager.stopSpan(); may not execute
Please answer these questions before submitting pull request
Why submit this pull request?
Bug fix
Related issues
Bug fix