gaoweijie opened a new issue #6301: URL: https://github.com/apache/skywalking/issues/6301
Please answer these questions before submitting your issue. - Why do you submit this issue? - [ ] Question or discussion - [ ] Bug ___ ### Question - Q1: There is a bug in version 8.3 of SW. If contextmanager creates span but does not execute "ContextManager.stopSpan ()", then threadLocal object's remove method will be skiped, there maybe existed a risk of ThreadLocal memory leak. If so, there is a great risk: In the customize-enhance-plugin, there is a set of configuration: close_ before_ method & close_ after_ method. If user set the field close_before_method=true,close_ after_ Method = false, this maybe cause "ContextManager.stopSpan ()" don't execute, and then ThreadLocal doesn't execute the remove method. After a long time, there will be a memory leak, right? - Q2: What is the meaning of these two parameters(close_before_method & close_ after_ Method)? Is it necessary to exist? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
