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

Hudson commented on YARN-6334:
------------------------------

SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #11456 (See 
[https://builds.apache.org/job/Hadoop-trunk-Commit/11456/])
YARN-6334. TestRMFailover#testAutomaticFailover always passes even when 
(templedf: rev 33815af4242ac8c6b119128730e63f13164fd763)
* (edit) 
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/test/java/org/apache/hadoop/yarn/client/TestRMFailover.java


> TestRMFailover#testAutomaticFailover always passes even when it should fail
> ---------------------------------------------------------------------------
>
>                 Key: YARN-6334
>                 URL: https://issues.apache.org/jira/browse/YARN-6334
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Yufei Gu
>            Assignee: Yufei Gu
>             Fix For: 3.0.0-alpha3
>
>         Attachments: YARN-6334.001.patch, YARN-6334.002.patch, 
> YARN-6334.003.patch, YARN-6334.004.patch, YARN-6334.005.patch
>
>
> Due to a bug in {{while}} loop. 
> {code}
>     int maxWaitingAttempts = 2000;
>     while (maxWaitingAttempts-- > 0 ) {
>       if (rm.getRMContext().getHAServiceState() == HAServiceState.STANDBY) {
>         break;
>       }
>       Thread.sleep(1);
>     }
>     Assert.assertFalse("RM didn't transition to Standby ",
>         maxWaitingAttempts == 0);
> {code}
> maxWaitingAttempts is -1 if RM didn't transition to Standby. 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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

Reply via email to