Skip to content

Commit

Permalink
[apache#1464][FOLLOWUP] improvement(spark): print abnormal shuffle se…
Browse files Browse the repository at this point in the history
…rvers that blocks fail to send
  • Loading branch information
rickyma committed Jan 19, 2024
1 parent 2bcaf9e commit 9255c91
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Map;
Expand Down Expand Up @@ -377,7 +378,9 @@ protected void checkBlockSendResult(Set<Long> blockIds) {
+ "] failed because "
+ failedBlockIds.size()
+ " blocks can't be sent to shuffle server: "
+ failedBlockIdsWithShuffleServer.values().stream().collect(Collectors.toSet());
+ failedBlockIdsWithShuffleServer.values().stream()
.flatMap(Collection::stream)
.collect(Collectors.toSet());
LOG.error(errorMsg);
throw new RssSendFailedException(errorMsg);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,9 @@ private void checkIfBlocksFailed() {
+ " failed because "
+ failedBlockIds.size()
+ " blocks can't be sent to shuffle server: "
+ failedBlockIdsWithShuffleServer.values().stream().collect(Collectors.toSet());
+ failedBlockIdsWithShuffleServer.values().stream()
.flatMap(Collection::stream)
.collect(Collectors.toSet());
LOG.error(errorMsg);
throw new RssSendFailedException(errorMsg);
}
Expand Down

0 comments on commit 9255c91

Please sign in to comment.