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

Hudson commented on YARN-5901:
------------------------------

SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #10926 (See 
[https://builds.apache.org/job/Hadoop-trunk-Commit/10926/])
YARN-5901. Fix race condition in TestGetGroups beforeclass setup() (templedf: 
rev 2d77dc727d9b5e56009bbc36643d85500efcbca5)
* (edit) 
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/test/java/org/apache/hadoop/yarn/client/TestGetGroups.java


> Fix race condition in TestGetGroups beforeclass setup()
> -------------------------------------------------------
>
>                 Key: YARN-5901
>                 URL: https://issues.apache.org/jira/browse/YARN-5901
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: yarn
>    Affects Versions: 3.0.0-alpha1
>            Reporter: Haibo Chen
>            Assignee: Haibo Chen
>              Labels: unittest
>         Attachments: YARN-5901-branch-2.03.patch, YARN-5901.02.patch, 
> YARN-5901.03.patch, yarn5901.001.patch
>
>
> In TestGetGroups, the class-level setup method spins up, in a child thread, a 
> resource manager that Yarn clients can talk to. But it checks whether the 
> resource manager is fully started by doing resourcemanager.getServiceState() 
> == STATE.STARTED. This is not reliable since resourcemanager.start() will 
> first trigger service state change in RM, and then starts up all the services 
> added to RM. We need to wait for RM to fully start before YARN clients  can 
> send requests. Otherwise, the tests can fail due to "connection refused"  
> exception when the main thread sends out client requests to RM and if the RPC 
> server has not fired up in the child thread.  



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

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org

Reply via email to