akalash commented on a change in pull request #16628:
URL: https://github.com/apache/flink/pull/16628#discussion_r679986921



##########
File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/BoundedBlockingSubpartition.java
##########
@@ -266,6 +266,13 @@ public int unsynchronizedGetNumberOfQueuedBuffers() {
         return 0;
     }
 
+    @Override
+    public int getNumberOfQueuedBuffers() {
+        synchronized (lock) {
+            return getBuffersInBacklogUnsafe();

Review comment:
       I actually understand that it doesn't make sense for 
`BoundedBlockingSubpartition` at the moment. You right that my implementation 
is wrong. I will just do the same behaviour which we have for 
`unsynchronizedGetNumberOfQueuedBuffers` namely just return 0




-- 
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]


Reply via email to