-
Notifications
You must be signed in to change notification settings - Fork 29.1k
[SPARK-27496][CORE] Fatal errors should also be sent back to the sender #24396
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -225,7 +225,15 @@ private[netty] class Dispatcher(nettyEnv: NettyRpcEnv, numUsableCores: Int) exte | |
| } | ||
| } | ||
| } catch { | ||
| case ie: InterruptedException => // exit | ||
| case _: InterruptedException => // exit | ||
| case t: Throwable => | ||
| try { | ||
| // Re-submit a MessageLoop so that Dispatcher will still work if | ||
| // UncaughtExceptionHandler decides to not kill JVM. | ||
| threadpool.execute(new MessageLoop) | ||
| } finally { | ||
| throw t | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. so this will always rethrow even when the MessageLoop is re-submitted? do you intend this to be not
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yep. This is going to throw the fatal errors (non fatal errors have been caught and should not reach here) to UncaughtExceptionHandler to let it decide what to do. |
||
| } | ||
| } | ||
| } | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should log before calling this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I usually don't log if it's going to be re-thrown since it will cause double logs.