Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-46717][CORE] Simplify
ReloadingX509TrustManager
by the exit …
…operation only depend on interrupt thread ### What changes were proposed in this pull request? This PR propose to simplify the `ReloadingX509TrustManager`. ### Why are the changes needed? Currently, close or destroy `ReloadingX509TrustManager` depend on interrupt thread and the volatile variable `running`. In fact, we can change the `running` to a local variable on stack and let the close operation of `ReloadingX509TrustManager` only depend on interrupt thread. ### 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'. Closes #44720 from beliefer/simplify-ReloadingX509TrustManager. Authored-by: beliefer <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
- Loading branch information