AngersZhuuuu opened a new pull request #25743: 
[SPARK-29036][SQL]SparkThriftServer cancel job after throw exception and  into  
catch block.
URL: https://github.com/apache/spark/pull/25743
 
 
   ### What changes were proposed in this pull request?
   Discuss in https://github.com/apache/spark/pull/25611 
   
   If cancel() and close() is called very quickly after the query is started, 
then they may both call cleanup() before Spark Jobs are started. Then 
sqlContext.sparkContext.cancelJobGroup(statementId) does nothing.
   But then the execute thread can start the jobs, and only then get 
interrupted and exit through here. But then it will exit here, and no-one will 
cancel these jobs and they will keep running even though this execution has 
exited.
   
   ### Why are the changes needed?
   
   
   
   ### Does this PR introduce any user-facing change?
   NO
   
   
   ### How was this patch tested?
   MT

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to