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

Bikas Saha commented on MAPREDUCE-5497:
---------------------------------------

Does the client service return job succeeded status after the services have 
stopped or as soon as jobimpl succeeds? If we wait till after the services have 
stopped, then we can be sure that the user will be notified of success only 
when the job is really done. Any unexpected incident during unregister etc can 
be handled internally as appropriate because the user still thinks that the job 
is running. After that we can sleep for 5 secs for the user to connect and read 
the status.
                
> '5s sleep'  in MRAppMaster.shutDownJob is only needed before stopping 
> ClientService
> -----------------------------------------------------------------------------------
>
>                 Key: MAPREDUCE-5497
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-5497
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>            Reporter: Jian He
>            Assignee: Jian He
>             Fix For: 2.1.1-beta
>
>         Attachments: MAPREDUCE-5497.1.patch, MAPREDUCE-5497.1.patch, 
> MAPREDUCE-5497.2.patch, MAPREDUCE-5497.patch
>
>
> Since the '5s sleep' is for the purpose to let clients know the final states, 
> put it after other services are stopped and only before stopping 
> ClientService is enough. This can reduce some race conditions like 
> MAPREDUCE-5471

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