Skip to content

Commit 2a13f70

Browse files
committed
iii
1 parent dc30e45 commit 2a13f70

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

core/src/main/scala/org/apache/spark/network/nio/NioBlockTransferService.scala

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,11 @@ final class NioBlockTransferService(conf: SparkConf, securityManager: SecurityMa
200200
val buffer = blockDataManager.getBlockData(blockId).orNull
201201
logDebug("GetBlock " + blockId + " used " + Utils.getUsedTimeMs(startTimeMs)
202202
+ " and got buffer " + buffer)
203-
buffer.nioByteBuffer()
203+
if (buffer == null) {
204+
logError(s"block $blockId cannot be found !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!")
205+
null
206+
} else {
207+
buffer.nioByteBuffer()
208+
}
204209
}
205210
}

0 commit comments

Comments
 (0)