You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-dev@hadoop.apache.org by "Chris Douglas (JIRA)" <ji...@apache.org> on 2015/02/13 00:28:12 UTC

[jira] [Resolved] (YARN-3192) Empty handler for exception: java.lang.InterruptedException #WebAppProxy.java and #/ResourceManager.java

     [ https://issues.apache.org/jira/browse/YARN-3192?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris Douglas resolved YARN-3192.
---------------------------------
    Resolution: Not a Problem

Calling {{System.exit(-1)}} is not an acceptable way to shut down the RM. Please review the surrounding code.

I'm going to close this, until we can tie a bug to this code. Graceful shutdown is difficult to effect, and this issue's scope is too narrow to contribute to it.

[~brahmareddy], many of the JIRAs you're filing appear to be detected by automated tools. If the interrupt handling here can cause hangs, HA bugs, inconsistent replies to users, etc. then please file reports on the consequences, citing this as the source.

> Empty handler for exception: java.lang.InterruptedException #WebAppProxy.java and #/ResourceManager.java
> --------------------------------------------------------------------------------------------------------
>
>                 Key: YARN-3192
>                 URL: https://issues.apache.org/jira/browse/YARN-3192
>             Project: Hadoop YARN
>          Issue Type: Bug
>    Affects Versions: 2.6.0
>            Reporter: Brahma Reddy Battula
>            Assignee: Brahma Reddy Battula
>         Attachments: YARN-3192.patch
>
>
> The InterruptedException is completely ignored. As a result, any events causing this interrupt will be lost.
>  File: org/apache/hadoop/yarn/server/resourcemanager/ResourceManager.java
> {code}
>    try {
>             event = eventQueue.take();
>           } catch (InterruptedException e) {
>             LOG.error("Returning, interrupted : " + e);
>             return; // TODO: Kill RM.
>           }
> {code}
> File: "org/apache/hadoop/yarn/server/webproxy/WebAppProxy.java"
> {code}
> public void join() {
>     if(proxyServer != null) {
>       try {
>         proxyServer.join();
>       } catch (InterruptedException e) {
>       }
>     }
>   }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)