wu-sheng commented on a change in pull request #6715:
URL: https://github.com/apache/skywalking/pull/6715#discussion_r610564648
##########
File path:
apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/context/trace/TraceSegment.java
##########
@@ -89,6 +89,13 @@ public void ref(TraceSegmentRef refSegment) {
if (refs == null) {
refs = new LinkedList<>();
}
+ /*
+ * There maybe an exception in some plugins, which causes the span to
fail to exit,
+ * which results in the ThreadLocal not being cleaned up, and this
data is increasing.
+ */
+ if (refs.size() >= Config.Agent.TRACE_SEGMENT_REF_LIMIT_PER_SEGMENT) {
Review comment:
Similar to
https://github.com/apache/skywalking/pull/6715/files#r610564498, check the
code, please.
--
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]