AHeise commented on a change in pull request #13499: URL: https://github.com/apache/flink/pull/13499#discussion_r496476806
########## File path: flink-runtime/src/main/java/org/apache/flink/runtime/io/network/buffer/LocalBufferPool.java ########## @@ -190,6 +205,12 @@ subpartitionBufferRecyclers[i] = new SubpartitionBufferRecycler(i, this); } this.maxBuffersPerChannel = maxBuffersPerChannel; + + if (checkAvailability()) { + availabilityHelper.resetAvailable(); + } + + assert hasConsistentAvailability(); Review comment: Similar to `NetworkBufferPool#redistributeBuffers` these assertions are just to ease debugging during test execution. The few cycles needed to conduct the test are skipped on production. If you rather like to see them being executed for every run, we probably need to align it also in `NetworkBufferPool` to keep it consistent. ---------------------------------------------------------------- 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