jiangxb1987 commented on a change in pull request #27604: 
[SPARK-30849][CORE][SHUFFLE]Fix application failed due to failed to get 
MapStatuses broadcast block
URL: https://github.com/apache/spark/pull/27604#discussion_r393856539
 
 

 ##########
 File path: 
core/src/main/scala/org/apache/spark/broadcast/TorrentBroadcast.scala
 ##########
 @@ -186,7 +186,7 @@ private[spark] class TorrentBroadcast[T: ClassTag](obj: T, 
id: Long)
               }
               blocks(pid) = new ByteBufferBlockData(b, true)
             case None =>
-              throw new SparkException(s"Failed to get $pieceId of 
$broadcastId")
+              throw new BlockNotFoundException(pieceId.toString)
 
 Review comment:
   Is it still possible to include the `broadcastId` in the error msg? I feel 
it's still important information to help debuggability.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to