Skip to content

Commit

Permalink
[hotfix][network] Remove unused method BufferPool#getSubpartitionBuff…
Browse files Browse the repository at this point in the history
…erRecyclers
  • Loading branch information
pnowojski authored and TheodoreLx committed Apr 28, 2021
1 parent d2cad34 commit 5948039
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,4 @@ public interface BufferPool extends BufferProvider, BufferRecycler {

/** Returns the number of used buffers of this buffer pool. */
int bestEffortGetNumOfUsedBuffers();

BufferRecycler[] getSubpartitionBufferRecyclers();
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

package org.apache.flink.runtime.io.network.buffer;

import org.apache.flink.annotation.VisibleForTesting;
import org.apache.flink.core.memory.MemorySegment;
import org.apache.flink.runtime.io.network.buffer.BufferListener.NotificationResult;
import org.apache.flink.util.ExceptionUtils;
Expand Down Expand Up @@ -659,12 +658,6 @@ private boolean isRequestedSizeReached() {
return numberOfRequestedMemorySegments >= currentPoolSize;
}

@VisibleForTesting
@Override
public BufferRecycler[] getSubpartitionBufferRecyclers() {
return subpartitionBufferRecyclers;
}

private static class SubpartitionBufferRecycler implements BufferRecycler {

private int channel;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@

import org.apache.flink.core.memory.MemorySegment;

import javax.annotation.Nullable;

import java.util.concurrent.CompletableFuture;

/** No-op implementation of {@link BufferPool}. */
Expand Down Expand Up @@ -98,12 +96,6 @@ public int bestEffortGetNumOfUsedBuffers() {
throw new UnsupportedOperationException();
}

@Nullable
@Override
public BufferRecycler[] getSubpartitionBufferRecyclers() {
return new BufferRecycler[0];
}

@Override
public void recycle(MemorySegment memorySegment) {
throw new UnsupportedOperationException();
Expand Down

0 comments on commit 5948039

Please sign in to comment.