akalash commented on a change in pull request #17660:
URL: https://github.com/apache/flink/pull/17660#discussion_r744865583
##########
File path:
flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/PipelinedSubpartition.java
##########
@@ -497,6 +497,12 @@ public int unsynchronizedGetNumberOfQueuedBuffers() {
return Math.max(buffers.size(), 0);
}
+ @Override
+ public long unsynchronizedGetSizeOfQueuedBuffers() {
+ // Pretty rough approximation of real queue size.
+ return Math.max(unsynchronizedGetNumberOfQueuedBuffers() * bufferSize,
0);
Review comment:
I think for only local channels is a good trade off
--
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]