zhouyifan279 opened a new pull request, #41105: URL: https://github.com/apache/spark/pull/41105
### What changes were proposed in this pull request? Ensure old SparkUI in HistoryServer has been detached before loading new one. ### Why are the changes needed? We encountered same error described in SPARK-43403 in two different SparkHistoryServers. It happened when `FsHistoryProvider#onUIDetached` run (in thread-a) right after a new SparkUI with the same appId and attemptId was loaded (in thread-b). To avoid this, we let loading of the new SparkUI wait until old SparkUI is detached. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Add test `Load new SparkUI before old one detached` in `ApplicationCacheSuite` -- 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]
