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

Bikas Saha commented on YARN-549:
---------------------------------

Can you please update the patch to add javadoc to the ClientRMProtocol saying 
ClientRMProtocol.submitApplication needs to be followed by getApplicationReport 
to be sure that the application got properly submitted. Thanks!
                
> YarnClient.submitApplication should wait for application to be accepted by 
> the RM
> ---------------------------------------------------------------------------------
>
>                 Key: YARN-549
>                 URL: https://issues.apache.org/jira/browse/YARN-549
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>            Reporter: Zhijie Shen
>            Assignee: Zhijie Shen
>         Attachments: Proposal of Asynchronous Application Submission_v1.pdf, 
> YARN-549.1.patch, YARN-549.2.patch, YARN-549.3.patch
>
>
> Currently, when submitting an application, storeApplication will be called 
> for recovery. However, it is a blocking API, and is likely to block 
> concurrent application submissions. Therefore, it is good to make application 
> submission asynchronous, and postpone storeApplication. YarnClient needs to 
> change to wait for the whole operation to complete so that clients can be 
> notified after the application is really submitted. YarnClient needs to wait 
> for application to reach SUBMITTED state or beyond.

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