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

Jason Lowe commented on YARN-8147:
----------------------------------

The unit test is making the assumption that the machine is not fast enough for 
an application to be started and return to the client in the same millisecond.  
Occasionally this does happen in the unit test and the test fails.

> TestClientRMService#testGetApplications sporadically fails
> ----------------------------------------------------------
>
>                 Key: YARN-8147
>                 URL: https://issues.apache.org/jira/browse/YARN-8147
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: test
>            Reporter: Jason Lowe
>            Assignee: Jason Lowe
>            Priority: Major
>
> testGetApplications can fail sporadically when testing start time filters on 
> the request, e.g.:
> {noformat}
> java.lang.AssertionError: Incorrect number of matching start range 
> expected:<0> but was:<1>
>       at org.junit.Assert.fail(Assert.java:88)
>       at org.junit.Assert.failNotEquals(Assert.java:743)
>       at org.junit.Assert.assertEquals(Assert.java:118)
>       at org.junit.Assert.assertEquals(Assert.java:555)
>       at 
> org.apache.hadoop.yarn.server.resourcemanager.TestClientRMService.testGetApplications(TestClientRMService.java:798)
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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