vrozov commented on code in PR #52770:
URL: https://github.com/apache/spark/pull/52770#discussion_r2476392787
##########
core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala:
##########
@@ -1166,7 +1166,7 @@ object SparkSubmit extends CommandLineUtils with Logging {
super.doSubmit(args)
} catch {
case e: SparkUserAppException =>
- exitFn(e.exitCode, Some(e))
+ exitFn(e.exitCode, Option(e.getCause))
Review Comment:
The intention to suppress `SparkUserAppException` is not clear from the
code. I'd suggest to add comments that explain the intention.
--
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]