You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2022/05/30 09:29:30 UTC

[GitHub] [flink] 1996fanrui commented on a diff in pull request #19842: [FLINK-27522][network] Ignore max buffers per channel when allocate buffer

1996fanrui commented on code in PR #19842:
URL: https://github.com/apache/flink/pull/19842#discussion_r884622079


##########
flink-runtime/src/test/java/org/apache/flink/runtime/io/network/buffer/LocalBufferPoolTest.java:
##########
@@ -453,7 +453,7 @@ public void testMaxBuffersPerChannelAndAvailability() throws Exception {
         final BufferBuilder bufferBuilder02 = localBufferPool.requestBufferBuilderBlocking(0);
         assertFalse(localBufferPool.getAvailableFuture().isDone());
 
-        assertNull(localBufferPool.requestBufferBuilder(0));
+        final BufferBuilder bufferBuilder03 = localBufferPool.requestBufferBuilderBlocking(0);

Review Comment:
   Hi @pnowojski , thanks for your review.
   
   I will add these comments here, what do you think? Or should we add these to `LocalBufferPool#requestMemorySegment`?
   
   ```
           // When this channel reaches maxBuffersPerChannel, LocalBufferPool will be unavailable. But
           // when a memory segment is requested from LocalBufferPool and availableMemorySegments isn't
           // empty, maxBuffersPerChannel will be ignored and buffers will continue to be allocated.
           // Check FLINK-27522 for more information.
   ```



-- 
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: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org