littlelittlewhite09 commented on code in PR #45667:
URL: https://github.com/apache/spark/pull/45667#discussion_r1536671147
##########
core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala:
##########
@@ -996,6 +1005,13 @@ private[spark] class SparkSubmit extends Logging {
SparkContext.getActive.foreach(_.stop())
} catch {
case e: Throwable => logError(s"Failed to close SparkContext: $e")
+ } finally {
+ if (SparkContext.getActive.isEmpty) {
+ if (!DriverPodIsNormal) {
+ logError(s"Driver Pod will exit because: $driverThrow")
+ System.exit(EXIT_FAILURE)
Review Comment:
Here is yarn exit code.
[resource-managers/yarn/src/main/scala/org/apache/spark/deploy/yarn/ApplicationMaster.scala](https://github.com/apache/spark/blob/39500a315166d8e342b678ef3038995a03ce84d6/resource-managers/yarn/src/main/scala/org/apache/spark/deploy/yarn/ApplicationMaster.scala#L870)
It seems applicationmaster adopts it's own failure exit code, which not
suitable for driver pod.
--
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]