wu-sheng commented on a change in pull request #3170: Support upgrade backend
w/o rebooting agents
URL: https://github.com/apache/skywalking/pull/3170#discussion_r307953459
##########
File path:
oap-server/server-receiver-plugin/skywalking-trace-receiver-plugin/src/main/java/org/apache/skywalking/oap/server/receiver/trace/provider/parser/SegmentParseV2.java
##########
@@ -87,6 +92,12 @@ public boolean parse(BufferData<UpstreamSegment>
bufferData, SegmentSource sourc
}
SegmentObject segmentObject = bufferData.getV2Segment();
+ final int serviceInstanceId = segmentObject.getServiceInstanceId();
+ if (serviceInstanceInventoryCache.get(serviceInstanceId) == null) {
+ logger.warn("Cannot recognize service instance id [{}] from
cache, segment will be ignored", serviceInstanceId);
Review comment:
We need this check in segment parser. Because data could come from file
buffer.
----------------------------------------------------------------
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]
With regards,
Apache Git Services