Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[STORM-1501] launch worker process exception will cause supervisor process exited #1046

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion storm-core/src/clj/org/apache/storm/util.clj
Expand Up @@ -553,7 +553,8 @@
(catch InterruptedException e
(log-message log-prefix " interrupted.")))
(exit-code-callback (.exitValue process)))
nil)))
nil)
:kill-fn (fn [error] (log-error (RuntimeException. ("launch process failed..."))))))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we throwing away error?

What happens if this does not exit? I assume that the heartbeat monitoring will detect it and do the right thing, but are there other places in the code besides a worker process that we use this? Will there be problems especially around the exit-code-callback if they are not called?

process)))

(defn exists-file?
Expand Down