jjayadeep06 opened a new pull request, #50223: URL: https://github.com/apache/spark/pull/50223
What changes were proposed in this pull request? Cancel the timer class when onStop method is called Why are the changes needed? This change is needed to successfully exit the spark application else it hangs on completion. Does this PR introduce any user-facing change? No How was this patch tested? Run the following scripts locally using spark-submit. Without this change, the JVM would hang there and not exit. With this change it would exit successfully. Code samples to simulate the problem and the corresponding fix is attached below:- [barrier_example.py](https://gist.github.com/jshmchenxi/5d7e7c61e1eedd03cd6d676699059e9b#file-barrier_example-py) [xgboost-test.py](https://gist.github.com/bcheena/510230e19120eb9ae631dcafa804409f). Was this patch authored or co-authored using generative AI tooling? No -- 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