xupefei commented on code in PR #48906:
URL: https://github.com/apache/spark/pull/48906#discussion_r1850246910
##########
sql/core/src/main/scala/org/apache/spark/sql/SparkSession.scala:
##########
@@ -133,14 +133,32 @@ class SparkSession private(
/** Tag to mark all jobs owned by this session. */
private[sql] lazy val sessionJobTag = s"spark-session-$sessionUUID"
+ /**
+ * A UUID that is unique on the thread level. Used by managedJobTags to make
sure that the same
+ * use tag do not overlap in the underlying SparkContext/SQLExecution.
+ */
+ private[sql] lazy val threadUuid = new ThreadLocal[String] {
Review Comment:
Thanks, fixed!
I was confused about thread vs session. The `Inheritable` here is for child
threads.
--
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]