Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/19852#discussion_r155136340
  
    --- 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 --
    
    then shall we just remove this case to be totally consistent with java 
task? i.e. no logging here and no extra SparkException to wrap the original 
exception.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to