Skip to content

Commit 47f9636

Browse files
authored
Update BlockManager.scala
1 parent f60c4be commit 47f9636

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/src/main/scala/org/apache/spark/storage/BlockManager.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -878,6 +878,8 @@ private[spark] class BlockManager(
878878
}
879879
res
880880
} finally {
881+
// This cleanup is performed in a finally block rather than a `catch` to avoid having to
882+
// catch and properly re-throw InterruptedException.
881883
if (exceptionWasThrown) {
882884
logWarning(s"Putting block $blockId failed due to an exception")
883885
// If an exception was thrown then it's possible that the code in `putBody` has already

0 commit comments

Comments
 (0)