Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
if the process is killed forcefully from the OS or if it's crashing due to resource issues (e.g., out of memory), shutdown hooks won't be invoked.
-TERM (15)
The process is requested to stop running; it should try to exit cleanly
-KILL (9)
The process will be killed by the kernel; this signal cannot be ignored.
So should we better use 'kill -15' ?
See:
https://github.com/apache/incubator-storm/blob/master/storm-core/src/clj/backtype/storm/util.clj#L392
will never be called for supervisor:
https://github.com/apache/incubator-storm/blob/master/storm-core/src/clj/backtype/storm/daemon/supervisor.clj#L396
will never be called for worker:
https://github.com/apache/incubator-storm/blob/master/storm-core/src/clj/backtype/storm/daemon/worker.clj#L421
We'd better add something like :
(.addShutdownHook (Runtime/getRuntime) (Thread. (fn [] (.shutdown mk-sv)))))) ?
Attachments
Attachments
Issue Links
- is related to
-
STORM-126 Add Lifecycle support API for worker nodes
- Resolved