SinBex commented on code in PR #21695:
URL: https://github.com/apache/flink/pull/21695#discussion_r1081140610


##########
flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/ExecutionVertex.java:
##########
@@ -169,6 +169,16 @@ public ExecutionVertexInputInfo 
getExecutionVertexInputInfo(IntermediateDataSetI
                 .get(subTaskIndex);
     }
 
+    /** Get the current input number bytes. Note that only finished inputs 
will be counted. */
+    public long getExecutionVertexInputNumBytes() {
+        return getJobVertex().getInputs().stream()
+                .mapToLong(
+                        intermediateResult ->
+                                
getExecutionVertexInputInfo(intermediateResult.getId())
+                                        .getAggregatedInputNumBytes())
+                .sum();

Review Comment:
   Yes, it's better, fix this.



-- 
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: issues-unsubscr...@flink.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to