zhijiangW commented on a change in pull request #8559: [FLINK-12576][Network, 
Metrics]Take localInputChannel into account when compute inputQueueLength
URL: https://github.com/apache/flink/pull/8559#discussion_r304766052
 
 

 ##########
 File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/consumer/LocalInputChannel.java
 ##########
 @@ -260,6 +260,17 @@ void releaseAllResources() throws IOException {
                }
        }
 
+       @Override
+       public int unsynchronizedGetNumberOfQueuedBuffers() {
+               ResultSubpartitionView view = subpartitionView;
+
+               if (view != null) {
+                       return 
subpartitionView.unsynchronizedGetNumberOfQueuedBuffers();
 
 Review comment:
   we should call `view.unsynchronizedGetNumberOfQueuedBuffers` instead.

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to