You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Haibo Chen (JIRA)" <ji...@apache.org> on 2017/03/30 22:17:41 UTC

[jira] [Comment Edited] (YARN-6204) Set UncaughtExceptionHandler for event handling thread in AsyncDispatcher

    [ https://issues.apache.org/jira/browse/YARN-6204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15949963#comment-15949963 ] 

Haibo Chen edited comment on YARN-6204 at 3/30/17 10:16 PM:
------------------------------------------------------------

Thanks [~yufeigu] for your patch! The new RMCriticialUncaughtExceptionHandler for AsyncDispatcher improves exception handling by transitioning RM to standby if there is any exception, but it will not improve non-HA setup because 
{code}
rmContext.getDispatcher().getEventHandler().handle(
          new RMFatalEvent(RMFatalEventType.CRITICAL_THREAD_CRASH,
              new Exception(e)));
{code}
will have no effect as the dispatcher thread has failed at the point. The current default UncaughtExceptionHandler logs the exception at least.




was (Author: haibochen):
Thanks [~yufeigu] for your patch! The new RMCriticialUncaughtExceptionHandler for AsyncDispatcher improves exception handling by transitioning RM to standby if there is any exception, but it will not improve non-HA setup because 
{code}
rmContext.getDispatcher().getEventHandler().handle(
          new RMFatalEvent(RMFatalEventType.CRITICAL_THREAD_CRASH,
              new Exception(e)));
{code}
will have no effect as the dispatcher thread has failed at the point.



> Set UncaughtExceptionHandler for event handling thread in AsyncDispatcher
> -------------------------------------------------------------------------
>
>                 Key: YARN-6204
>                 URL: https://issues.apache.org/jira/browse/YARN-6204
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: resourcemanager
>    Affects Versions: 2.9.0, 3.0.0-alpha2
>            Reporter: Yufei Gu
>            Assignee: Yufei Gu
>         Attachments: YARN-6204.001.patch
>
>
> The event handling thread in AsyncDispatcher is a critical thread in RM. We should set UncaughtExceptionHandler introduced in YARN-6061 for it.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org