pan3793 commented on code in PR #56274:
URL: https://github.com/apache/spark/pull/56274#discussion_r3348149248
##########
resource-managers/yarn/src/main/scala/org/apache/spark/scheduler/cluster/YarnClientSchedulerBackend.scala:
##########
@@ -135,6 +136,15 @@ private[spark] class YarnClientSchedulerBackend(
} catch {
case _: InterruptedException | _: InterruptedIOException =>
logInfo("Interrupting monitor thread")
+ case NonFatal(e) =>
+ logError(log"Unexpected error in YARN application state monitor
thread.", e)
+ allowInterrupt = false
+ sc.stop()
Review Comment:
this is an abnormal case, should sc be stopped with an error code?
--
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]