tedyu commented on code in PR #49354:
URL: https://github.com/apache/spark/pull/49354#discussion_r1903271828
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/python/TransformWithStateInPandasStateServer.scala:
##########
@@ -146,6 +146,9 @@ class TransformWithStateInPandasStateServer(
while (listeningSocket.isConnected &&
statefulProcessorHandle.getHandleState !=
StatefulProcessorHandleState.CLOSED) {
+ if (Thread.currentThread().isInterrupted) {
+ throw new InterruptedException("Thread was interrupted")
Review Comment:
Since interruption is handled in the try/catch block, I think this if
statement is not needed.
If we keep the if statement, `StatefulProcessorHandleState` should be set to
`CLOSED` here as well.
--
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]