guixiaowen commented on code in PR #46620:
URL: https://github.com/apache/spark/pull/46620#discussion_r1612877835


##########
resource-managers/yarn/src/main/scala/org/apache/spark/deploy/yarn/ApplicationMaster.scala:
##########
@@ -746,6 +746,11 @@ private[spark] class ApplicationMaster(
             e.getCause match {
               case _: InterruptedException =>
                 // Reporter thread can interrupt to stop user class
+              case stopAmRetry: SparkStopAMRetryException =>
+                finish(FinalApplicationStatus.FAILED,
+                  ApplicationMaster.EXIT_STOP_AM_RETYR,
+                  "User class threw exception: "
+                    + StringUtils.stringifyException(stopAmRetry.getCause))

Review Comment:
   @yaooqinn  Yes, I changed it.  



-- 
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: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to