xupefei opened a new pull request, #48906: URL: https://github.com/apache/spark/pull/48906
### What changes were proposed in this pull request? This PR changes the implementation of user-provided tags to be thread-local, so that tags added by two threads to the same SparkSession do not interfere with each other. Overlaps (from the `SparkCcntext` perspective) are avoided by introducing a thread-local random UUID which is attached to all tags in the same thread. ### Why are the changes needed? To make tags isolated per thread. ### Does this PR introduce _any_ user-facing change? Yes, user-provided tags are now isolated on the session level. ### How was this patch tested? Local test. ### 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]
