akalash commented on a change in pull request #17660:
URL: https://github.com/apache/flink/pull/17660#discussion_r744867711
##########
File path:
flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/BufferWritingResultPartition.java
##########
@@ -111,6 +111,17 @@ public int getNumberOfQueuedBuffers() {
return totalBuffers;
}
+ @Override
+ public long getSizeOfQueuedBuffers() {
+ long totalNumberOfBytes = 0;
+
+ for (ResultSubpartition subpartition : subpartitions) {
+ totalNumberOfBytes += Math.max(0,
subpartition.getTotalNumberOfBytes());
+ }
+
+ return numBytesOut.getCount() - totalNumberOfBytes;
Review comment:
I agree. I implemented the new field `totalWrittenBytes` which will be
updated on every record.
--
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]