Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-51048][CORE] Support stop java spark context with exit code
### What changes were proposed in this pull request? Considering there is support to stop spark context with required exit code, This PR aims to use the same to add it to java spark context as well. ### Why are the changes needed? Currently to use `stop(exitCode)` method for JavaSparkContext, user has to call `javaSparkContextsparkContext.stop(exitCode)`. Post this PR user can directly do `javaSparkContextsparkContext.stop(exitCode)` to invoke same. ### Does this PR introduce _any_ user-facing change? No, it introduces an extra method in JavaSparkContext class ### How was this patch tested? This was tested in internal/production k8 cluster ### Was this patch authored or co-authored using generative AI tooling? No Closes apache#49746 from prathit06/SPARK-51048. Authored-by: prathit06 <malik.prathit@gmail.com> Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
- Loading branch information