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

Vinod Kumar Vavilapalli commented on YARN-873:
----------------------------------------------

bq. Would be good to make the behavior consistent. Its ok to throw the same 
exception in the server for both cases.
+1, let's not add null-checks for clients. Similar to FileNotFoundException, we 
should have an ApplicationNotFoundException or a UnknownApplicationException 
which clients can cleanly handle. And +1 for making getAppReport()/killApp() 
all using the same exception.
                
> 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
>
> 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