hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yeliang Cang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-6399) application failed in ResourceManager web UI, but shown as "Application Finished - Succeeded" in RMAuditLogger
Date Mon, 27 Mar 2017 07:07:41 GMT

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

Yeliang Cang commented on YARN-6399:
------------------------------------

It seems that in RMAppManager#writeAuditLog, we should use getFinalApplicationStatus() instead
of  app.getState():

CHANGE THE CODE


    switch (app.getState()) {
      case FAILED: 
        operation = AuditConstants.FINISH_FAILED_APP;
        break;
      case FINISHED:
        operation = AuditConstants.FINISH_SUCCESS_APP;
        success = true;
        break;
      case KILLED: 
        operation = AuditConstants.FINISH_KILLED_APP;
        success = true;
        break;
      default:
        break;
    }

AS:

    switch (app.getFinalApplicationStatus()) {
      case FAILED: 
        operation = AuditConstants.FINISH_FAILED_APP;
        break;
      case SUCCEEDED:
        operation = AuditConstants.FINISH_SUCCESS_APP;
        success = true;
        break;
      case KILLED: 
        operation = AuditConstants.FINISH_KILLED_APP;
        success = true;
        break;
      default:
        break;
    }





> application failed in ResourceManager web UI, but shown as "Application Finished - Succeeded"
in RMAuditLogger
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: YARN-6399
>                 URL: https://issues.apache.org/jira/browse/YARN-6399
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: resourcemanager
>    Affects Versions: 2.7.3
>            Reporter: Yeliang Cang
>
> I hava run an wordcount app on yarn. During the app running time, all the two resourcemanagers
(acitve and standby) and nodemanagers are restarted. After that, the wordcount app still ran
but failed at last. This can be shown in RM web UI. But the RMAuditLogger shows "Application
Finished - Succeeded"



--
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


Mime
View raw message