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

Varun Saxena commented on YARN-5903:
------------------------------------

[~haibochen], previously we were throwing IOException if RM did not change to 
STARTED state.
So shouldn't we check result of CountDownLatch#await and if its false, throw an 
IOException  as that will indicate RM has not yet started.

> Fix race condition in TestResourceManagerAdministrationProtocolPBClientImpl 
> beforeclass setup method
> ----------------------------------------------------------------------------------------------------
>
>                 Key: YARN-5903
>                 URL: https://issues.apache.org/jira/browse/YARN-5903
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: yarn
>    Affects Versions: 3.0.0-alpha1
>            Reporter: Haibo Chen
>            Assignee: Haibo Chen
>         Attachments: yarn5903.001.patch
>
>
> This is essentially the same race condition as in YARN-5901, that is, 
> resourcemanager.getServiceState() == STATE.STARTED does not guarantee 
> resource manager is fully started.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to