Github user JoshRosen commented on the pull request:

    https://github.com/apache/spark/pull/4627#issuecomment-74606437
  
    It looks like `removeShutdownHook` here can get called _during_ shutdown, 
which leads to some exceptions that might prevent other cleanup from taking 
place:
    
    ```
    Exception in thread "delete Spark local dirs" 
java.lang.IllegalStateException: Shutdown in progress
            at 
java.lang.ApplicationShutdownHooks.remove(ApplicationShutdownHooks.java:82)
            at java.lang.Runtime.removeShutdownHook(Runtime.java:239)
            at 
org.apache.spark.storage.DiskBlockManager.stop(DiskBlockManager.scala:151)
            at 
org.apache.spark.storage.DiskBlockManager$$anon$1$$anonfun$run$1.apply$mcV$sp(DiskBlockManager.scala:141)
            at 
org.apache.spark.storage.DiskBlockManager$$anon$1$$anonfun$run$1.apply(DiskBlockManager.scala:139)
            at 
org.apache.spark.storage.DiskBlockManager$$anon$1$$anonfun$run$1.apply(DiskBlockManager.scala:139)
            at 
org.apache.spark.util.Utils$.logUncaughtExceptions(Utils.scala:1613)
            at 
org.apache.spark.storage.DiskBlockManager$$anon$1.run(DiskBlockManager.scala:139)
    Exception in thread "delete Spark local dirs" 
java.lang.IllegalStateException: Shutdown in progress
            at 
java.lang.ApplicationShutdownHooks.remove(ApplicationShutdownHooks.java:82)
            at java.lang.Runtime.removeShutdownHook(Runtime.java:239)
            at 
org.apache.spark.storage.DiskBlockManager.stop(DiskBlockManager.scala:151)
            at 
org.apache.spark.storage.DiskBlockManager$$anon$1$$anonfun$run$1.apply$mcV$sp(DiskBlockManager.scala:141)
            at 
org.apache.spark.storage.DiskBlockManager$$anon$1$$anonfun$run$1.apply(DiskBlockManager.scala:139)
            at 
org.apache.spark.storage.DiskBlockManager$$anon$1$$anonfun$run$1.apply(DiskBlockManager.scala:139)
            at 
org.apache.spark.util.Utils$.logUncaughtExceptions(Utils.scala:1613)
            at 
org.apache.spark.storage.DiskBlockManager$$anon$1.run(DiskBlockManager.scala:139)
    ```
    
    @srowen @MattWhelan Can you fix this or file a JIRA?


---
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.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to