Github user zsxwing commented on the pull request:
https://github.com/apache/spark/pull/6307#issuecomment-104112034
@tdas as per javadoc:
https://docs.oracle.com/javase/7/docs/api/java/lang/Runtime.html#addShutdownHook(java.lang.Thread)
> Shutdown hooks should also finish their work quickly. When a program
invokes exit the expectation is that the virtual machine will promptly shut
down and exit. When the virtual machine is terminated due to user logoff or
system shutdown the underlying operating system may only allow a fixed amount
of time in which to shut down and exit. It is therefore inadvisable to attempt
any user interaction or to perform a long-running computation in a shutdown
hook.
I think maybe we should not support stopping gracefully in the shutdown
hook.
---
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]