wangyum commented on a change in pull request #25743: 
[SPARK-29036][SQL]SparkThriftServer cancel job after execute() thread 
interrupted
URL: https://github.com/apache/spark/pull/25743#discussion_r323740056
 
 

 ##########
 File path: 
sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkExecuteStatementOperation.scala
 ##########
 @@ -267,6 +267,9 @@ private[hive] class SparkExecuteStatementOperation(
       // Actually do need to catch Throwable as some failures don't inherit 
from Exception and
       // HiveServer will silently swallow them.
       case e: Throwable =>
+        if (statementId != null) {
 
 Review comment:
   Could we add a comment explaining why we need this change?

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


With regards,
Apache Git Services

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

Reply via email to