Github user jerryshao commented on a diff in the pull request:
https://github.com/apache/spark/pull/19171#discussion_r139053438
--- Diff: core/src/main/scala/org/apache/spark/storage/BlockManager.scala
---
@@ -988,6 +988,12 @@ private[spark] class BlockManager(
logWarning(s"Putting block $blockId failed")
}
res
+ } catch {
+ // Since removeBlockInternal may throw exception,
+ // we should print exception first to show root cause.
+ case e: Throwable =>
+ logWarning(s"Putting block $blockId failed due to exception $e.")
--- End diff --
Would you please change to `case NonFatal(e) =>`
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]