Ngone51 commented on code in PR #52792:
URL: https://github.com/apache/spark/pull/52792#discussion_r2508537763
##########
core/src/main/scala/org/apache/spark/executor/Executor.scala:
##########
@@ -380,7 +380,17 @@ private[spark] class Executor(
tr.kill(killMark._1, killMark._2)
killMarks.remove(taskId)
}
- threadPool.execute(tr)
+ try {
+ threadPool.execute(tr)
+ } catch {
+ case e: Throwable =>
Review Comment:
Or we can mimic
[SparkUncaughtExceptionHandler](https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/util/SparkUncaughtExceptionHandler.scala#L70-L94).
In the case of `OutOfMemoryError`, we can try to sent the status update
firstly. If `OutOfMemoryError` is thrown again, we fail the executor.
--
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]