StefanRRichter commented on code in PR #24119:
URL: https://github.com/apache/flink/pull/24119#discussion_r1457346844
##########
flink-streaming-java/src/main/java/org/apache/flink/streaming/api/operators/StreamTaskStateInitializerImpl.java:
##########
@@ -227,6 +238,24 @@ public StreamOperatorStateContext
streamOperatorStateContext(
timeServiceManager = null;
}
+ // Add stats for input channel and result partition state
+ Stream.concat(
+
prioritizedOperatorSubtaskStates.getPrioritizedInputChannelState()
+ .stream(),
+
prioritizedOperatorSubtaskStates.getPrioritizedResultSubpartitionState()
+ .stream())
+ .filter(Objects::nonNull)
+ .forEach(channelHandle ->
channelHandle.collectSizeStats(statsCollector));
+
+ // Report collected stats to metrics
+ statsCollector
+ .getStats()
+ .forEach(
Review Comment:
One is still collecting remaining stats from channels, the second is
reporting. I like to keep them separate.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]