Skip to content

Conversation

@dongjoon-hyun
Copy link
Member

@dongjoon-hyun dongjoon-hyun commented Aug 7, 2025

What changes were proposed in this pull request?

This PR aims to improve SparkUserAppException to have cause parameter additionally.

-private[spark] case class SparkUserAppException(exitCode: Int)
+private[spark] case class SparkUserAppException(exitCode: Int, cause: Throwable = null)

Why are the changes needed?

SparkUserAppException is used in many places; SparkSubmit, PythonRunner, RRunner, SparkPipelines. Although this is defined as private[spark], a new parameter cause can be used to enrich the information from the user application to upper layers internally.

Does this PR introduce any user-facing change?

No, this is defined as private[spark].

How was this patch tested?

Pass the CIs.

Was this patch authored or co-authored using generative AI tooling?

No.

@github-actions github-actions bot added the YARN label Aug 7, 2025
@dongjoon-hyun
Copy link
Member Author

cc @kazuyukitanimura and @peter-toth

@dongjoon-hyun
Copy link
Member Author

Thank you, @peter-toth .

Merged to master for Apache Spark 4.1.0.

@dongjoon-hyun dongjoon-hyun deleted the SPARK-53170 branch August 7, 2025 14:13
@kazuyukitanimura
Copy link
Contributor

Thank you @dongjoon-hyun

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants