TanYuxin-tyx commented on code in PR #22960: URL: https://github.com/apache/flink/pull/22960#discussion_r1258205255
########## flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/hybrid/tiered/storage/TieredStorageMemoryManagerImpl.java: ########## @@ -200,6 +202,22 @@ public int numOwnerRequestedBuffer(Object owner) { return numRequestedBuffer == null ? 0 : numRequestedBuffer.get(); } + @Override + public void transferBufferOwnership(Object oldOwner, Object newOwner, Buffer buffer) { + if (!buffer.isBuffer()) { + return; + } Review Comment: Moved the filter of `is null` outside the method. ########## flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/hybrid/tiered/tier/disk/DiskCacheManager.java: ########## @@ -41,6 +41,8 @@ class DiskCacheManager { private final int numSubpartitions; + private final TieredStorageMemoryManager memoryManager; Review Comment: Fixed. -- 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-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org