You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2021/08/05 00:44:49 UTC
[GitHub] [spark] AngersZhuuuu commented on a change in pull request #33622: [SPARK-36391][SHUFFLE] When state is remove will throw NPE, and we should improve the error message
AngersZhuuuu commented on a change in pull request #33622:
URL: https://github.com/apache/spark/pull/33622#discussion_r683049410
##########
File path: common/network-common/src/main/java/org/apache/spark/network/server/OneForOneStreamManager.java
##########
@@ -76,7 +76,10 @@ public OneForOneStreamManager() {
@Override
public ManagedBuffer getChunk(long streamId, int chunkIndex) {
StreamState state = streams.get(streamId);
- if (chunkIndex != state.curChunk) {
+ if (state == null) {
+ throw new IllegalStateException(String.format(
+ "Requested chunk has been removed for streamId %s", streamId));
Review comment:
done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org