zhijiangW commented on a change in pull request #9993: [FLINK-14498][runtime]Introduce NetworkBufferPool#isAvailable() for interacting with LocalBufferPool. URL: https://github.com/apache/flink/pull/9993#discussion_r340480226
########## File path: flink-runtime/src/test/java/org/apache/flink/runtime/io/network/buffer/NetworkBufferPoolTest.java ########## @@ -518,4 +527,204 @@ public void go() throws Exception { globalPool.destroy(); } } + + /** + * Tests {@link NetworkBufferPool#isAvailable()}, verifying that the buffer availability is correctly + * maintained after memory segments are requested by {@link NetworkBufferPool#requestMemorySegment()} + * and recycled by {@link NetworkBufferPool#recycle(MemorySegment)}. + */ + @Test + public void testIsAvailableAfterRequestMemorySegmentAndRecycle() throws Exception { Review comment: testIsAvailableAfterRequestMemorySegmentAndRecycle -> testIsAvailableAfterRequestAndRecycleSingleSegment? ---------------------------------------------------------------- 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