Skip to content

Commit 5b0ce67

Browse files
author
jinxing
committed
blockId0Parts.length != 4
1 parent 2592ef4 commit 5b0ce67

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common/network-shuffle/src/main/java/org/apache/spark/network/shuffle/ExternalShuffleBlockHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,14 +203,14 @@ private class ManagedBufferIterator implements Iterator<ManagedBuffer> {
203203
this.appId = appId;
204204
this.execId = execId;
205205
String[] blockId0Parts = blockIds[0].split("_");
206-
if (blockId0Parts.length < 4 || !blockId0Parts[0].equals("shuffle")) {
206+
if (blockId0Parts.length != 4 || !blockId0Parts[0].equals("shuffle")) {
207207
throw new IllegalArgumentException("Unexpected shuffle block id format: " + blockIds[0]);
208208
}
209209
this.shuffleId = Integer.parseInt(blockId0Parts[1]);
210210
mapIdAndReduceIds = new int[2 * blockIds.length];
211211
for (int i = 0; i < blockIds.length; i++) {
212212
String[] blockIdParts = blockIds[i].split("_");
213-
if (blockIdParts.length < 4 || !blockIdParts[0].equals("shuffle")) {
213+
if (blockIdParts.length != 4 || !blockIdParts[0].equals("shuffle")) {
214214
throw new IllegalArgumentException("Unexpected shuffle block id format: " + blockIds[i]);
215215
}
216216
if (Integer.parseInt(blockIdParts[1]) != shuffleId) {

0 commit comments

Comments
 (0)