Github user icexelloss commented on a diff in the pull request:
https://github.com/apache/spark/pull/19852#discussion_r155686222
--- Diff:
core/src/main/scala/org/apache/spark/api/python/PythonRunner.scala ---
@@ -319,7 +319,7 @@ private[spark] abstract class BasePythonRunner[IN, OUT](
case e: Exception if env.isStopped =>
logDebug("Exception thrown after context is stopped", e)
- null.asInstanceOf[OUT] // exit silently
+ throw new SparkException("Spark session has been stopped", e)
--- End diff --
Make senses. I will remove.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]