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

Xuan Gong commented on YARN-873:
--------------------------------

create the new Exception class called ApplicationNotFoundException. At 
ClientRMService#getApplicationReport(), instead of simply return null, we will 
throw out ApplicationNotFoundException. And at ApplicationCLI, we specifically 
catch the ApplicationNotFoundException exception, simply print out the message 
and return 0.

There are other several place where the YarnClient.getApplicationReport() will 
be used. But I only handle the exception at ApplicationCLI, because 
ApplicationCLI is the only place that applicationId will be provided by the 
user.
                
> YARNClient.getApplicationReport(unknownAppId) returns a null report
> -------------------------------------------------------------------
>
>                 Key: YARN-873
>                 URL: https://issues.apache.org/jira/browse/YARN-873
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>    Affects Versions: 2.1.0-beta
>            Reporter: Bikas Saha
>            Assignee: Xuan Gong
>         Attachments: YARN-873.1.patch
>
>
> How can the client find out that app does not exist?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to