juliuszsompolski commented on code in PR #41005:
URL: https://github.com/apache/spark/pull/41005#discussion_r1182803796


##########
connector/connect/client/jvm/src/main/scala/org/apache/spark/sql/SparkSession.scala:
##########
@@ -525,6 +525,19 @@ class SparkSession private[sql] (
     planIdGenerator.set(0)
   }
 
+  /**
+   * Interrupt all operations of this session currently running on the 
connected server.
+   *
+   * TODO/WIP: Currently it will interrupt the Spark Jobs running on the 
server, triggered from
+   * ExecutePlan requests. If an operation is not running a Spark Job, it 
becomes an noop and the

Review Comment:
   When I move execution to a separate thread, I can `Thread.interrupt` it and 
then it should be checked any time it gets blocked/waiting + may need some 
explicit checks for `Thread.isInterrupted()` in between.



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

Reply via email to