Github user hthuynh2 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/21936#discussion_r206918869
  
    --- Diff: core/src/main/scala/org/apache/spark/SparkContext.scala ---
    @@ -571,7 +571,12 @@ class SparkContext(config: SparkConf) extends Logging {
         _shutdownHookRef = ShutdownHookManager.addShutdownHook(
           ShutdownHookManager.SPARK_CONTEXT_SHUTDOWN_PRIORITY) { () =>
           logInfo("Invoking stop() from shutdown hook")
    -      stop()
    +      try {
    +        stop()
    +      } catch {
    +        case e: Throwable =>
    +          logWarning("Ignoring Exception while stoping SparkContext. 
Exception: " + e)
    --- End diff --
    
    @felixcheung Thanks for the comments. I updated it. 


---

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

Reply via email to