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

Tsuyoshi OZAWA commented on YARN-2545:
--------------------------------------

Thanks for your reporting, [~zhiguohong]. I think we should fix to report the 
states of app correctly. How about changing to check the state of apps and 
dispatch RMAppEventType#ATTEMPT_FAILED in 
RMAppAttemptImpl#AMUnregisteredTransition?


> RMApp should transit to FAILED when AM calls finishApplicationMaster with 
> FAILED
> --------------------------------------------------------------------------------
>
>                 Key: YARN-2545
>                 URL: https://issues.apache.org/jira/browse/YARN-2545
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Hong Zhiguo
>            Assignee: Hong Zhiguo
>            Priority: Minor
>
> If AM calls finishApplicationMaster with getFinalApplicationStatus()==FAILED, 
> and then exits, the corresponding RMApp and RMAppAttempt transit to state 
> FINISHED.
> I think this is wrong and confusing. On RM WebUI, this application is 
> displayed as "State=FINISHED, FinalStatus=FAILED", and is counted as "Apps 
> Completed", not as "Apps Failed".



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

Reply via email to