LantaoJin edited a comment on pull request #31119:
URL: https://github.com/apache/spark/pull/31119#issuecomment-759218273


   > BTW why doesn't STS use SQL execution ID to cancel the jobs for a SQL 
query? 
   
   A `statementId` bound in `SparkOperation` can be accessed in two threads 
(HiveServer2-Handler-Pool and HiveServer2-Background-Pool), it designed as 
non-thread-local instance. STS uses it as a job group id (thread local). But 
`executionId` always be treated as a thread local instance, though we could use 
it do the same thing. 


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to