zhijiangW commented on a change in pull request #10097: 
[FLINK-14603][runtime]Notify the potential buffer consumers if the size of 
LocalBufferPool has been expanded.
URL: https://github.com/apache/flink/pull/10097#discussion_r342935412
 
 

 ##########
 File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/io/network/buffer/LocalBufferPool.java
 ##########
 @@ -397,8 +394,17 @@ public void setNumBuffers(int numBuffers) throws 
IOException {
                        returnExcessMemorySegments();
 
                        numExcessBuffers = numberOfRequestedMemorySegments - 
currentPoolSize;
+
+                       if (currentPoolSize > numberOfRequestedMemorySegments
 
 Review comment:
   `currentPoolSize > numberOfRequestedMemorySegments` could be replaced by 
`numExcessBuffers<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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to