beliefer opened a new pull request, #44732: URL: https://github.com/apache/spark/pull/44732
### What changes were proposed in this pull request? This PR propose to simplify the `ContextCleaner`. ### Why are the changes needed? Currently, close or destroy `ContextCleaner` depend on interrupt thread and the volatile variable `stopped`. In fact, we can change the `stopped` to a local variable on stack and let the close operation of `ContextCleaner` only depend on interrupt thread. For further optimization, this PR using `running` instead of `stopped`. ### Does this PR introduce _any_ user-facing change? 'No'. ### How was this patch tested? GA tests. ### 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: [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]
