MaxGekk commented on code in PR #41575:
URL: https://github.com/apache/spark/pull/41575#discussion_r1245469582
##########
core/src/main/scala/org/apache/spark/shuffle/IndexShuffleBlockResolver.scala:
##########
@@ -263,7 +264,8 @@ private[spark] class IndexShuffleBlockResolver(
file.delete()
}
if (!fileTmp.renameTo(file)) {
- throw new IOException(s"fail to rename file ${fileTmp} to ${file}")
+ throw SparkException.internalError(
Review Comment:
I think that re-using the existing one `SparkRuntimeException` with a proper
error class should be enough but `SparkIOException` works to me as well.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]