Github user mateiz commented on a diff in the pull request:
https://github.com/apache/spark/pull/541#discussion_r11976215
--- Diff: core/src/main/scala/org/apache/spark/api/python/PythonRDD.scala
---
@@ -110,13 +110,35 @@ private[spark] class PythonRDD[T: ClassTag](
}
}.start()
+ // Necessary to distinguish between a task that has failed and a task
that is finished
+ @volatile var success: Boolean = false
+
+ // It is necessary to have a monitor thread for python workers if the
user cancel's with
+ // interrupts disabled. In that case we will need to explicitly kill
the worker, otherwise the
+ // threads can block indefinetly.
+ new Thread(s"Worker Monitor for $pythonExec") {
--- End diff --
Actually sorry, probably no need for that. I noticed the other threads
don't have it because they all wait on python exiting.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---