jiangxb1987 commented on a change in pull request #24699: [SPARK-27666][CORE]
Stop PythonRunner's WriteThread immediately when task finishes
URL: https://github.com/apache/spark/pull/24699#discussion_r287529871
##########
File path: core/src/main/scala/org/apache/spark/api/python/PythonRunner.scala
##########
@@ -180,6 +180,7 @@ private[spark] abstract class BasePythonRunner[IN, OUT](
def shutdownOnTaskCompletion() {
assert(context.isCompleted)
this.interrupt()
+ this.join()
Review comment:
This just blocks the current Thread and wait for interrupt to take effect?
----------------------------------------------------------------
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]