[CELEBORN-815] Remove unused ShuffleClient.readPartition
### What changes were proposed in this pull request? As title. ### Why are the changes needed? ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Passes GA. Closes #1739 from AngersZhuuuu/CELEBORN-815. Authored-by: Angerszhuuuu <angers.zhu@gmail.com> Signed-off-by: zky.zhoukeyong <zky.zhoukeyong@alibaba-inc.com>
This commit is contained in:
parent
5c7848d531
commit
be05ae37fe
@ -146,9 +146,6 @@ public abstract class ShuffleClient {
|
||||
int shuffleId, int partitionId, int attemptNumber, int startMapIndex, int endMapIndex)
|
||||
throws IOException;
|
||||
|
||||
public abstract CelebornInputStream readPartition(
|
||||
int shuffleId, int partitionId, int attemptNumber) throws IOException;
|
||||
|
||||
public abstract boolean cleanupShuffle(int shuffleId);
|
||||
|
||||
public abstract void shutdown();
|
||||
|
||||
@ -1508,12 +1508,6 @@ public class ShuffleClientImpl extends ShuffleClient {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public CelebornInputStream readPartition(int shuffleId, int partitionId, int attemptNumber)
|
||||
throws IOException {
|
||||
return readPartition(shuffleId, partitionId, attemptNumber, 0, Integer.MAX_VALUE);
|
||||
}
|
||||
|
||||
protected ReduceFileGroups loadFileGroupInternal(int shuffleId) {
|
||||
{
|
||||
long getReducerFileGroupStartTime = System.nanoTime();
|
||||
|
||||
@ -116,11 +116,6 @@ public class DummyShuffleClient extends ShuffleClient {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public CelebornInputStream readPartition(int shuffleId, int partitionId, int attemptNumber) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean cleanupShuffle(int shuffleId) {
|
||||
return false;
|
||||
|
||||
@ -141,11 +141,11 @@ trait WithShuffleClientSuite extends CelebornFunSuite {
|
||||
Assert.assertEquals(shuffleClient.getReduceFileGroupsMap.size(), 0)
|
||||
|
||||
// reduce normal empty CelebornInputStream
|
||||
var stream = shuffleClient.readPartition(shuffleId, 1, 1)
|
||||
var stream = shuffleClient.readPartition(shuffleId, 1, 1, 0, Integer.MAX_VALUE)
|
||||
Assert.assertEquals(stream.read(), -1)
|
||||
|
||||
// reduce normal null partition for CelebornInputStream
|
||||
stream = shuffleClient.readPartition(shuffleId, 3, 1)
|
||||
stream = shuffleClient.readPartition(shuffleId, 3, 1, 0, Integer.MAX_VALUE)
|
||||
Assert.assertEquals(stream.read(), -1)
|
||||
}
|
||||
|
||||
|
||||
@ -93,7 +93,7 @@ trait ReadWriteTestBase extends AnyFunSuite
|
||||
|
||||
shuffleClient.mapperEnd(1, 0, 0, 1)
|
||||
|
||||
val inputStream = shuffleClient.readPartition(1, 0, 0)
|
||||
val inputStream = shuffleClient.readPartition(1, 0, 0, 0, Integer.MAX_VALUE)
|
||||
val outputStream = new ByteArrayOutputStream()
|
||||
|
||||
var b = inputStream.read()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user