void release() {
        synchronized (allBuffers) {
            while (!allBuffers.isEmpty()) {
                allBuffers.poll().f0.recycleBuffer();
            }
        }
    }
@Test
    void testRelease() {
        SubpartitionDiskCacheManager subpartitionDiskCacheManager =
                new SubpartitionDiskCacheManager();
        Buffer buffer = BufferBuilderTestUtils.buildSomeBuffer();
        subpartitionDiskCacheManager.append(buffer);
        List<Tuple2<Buffer, Integer>> bufferAndIndexes =
                subpartitionDiskCacheManager.removeAllBuffers();
        assertThat(bufferAndIndexes).hasSize(1);
        assertThat(bufferAndIndexes.get(0).f0).isEqualTo(buffer);
        assertThatNoException().isThrownBy(subpartitionDiskCacheManager::release);
    }