You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Jason Lowe (JIRA)" <ji...@apache.org> on 2018/04/11 16:15:00 UTC

[jira] [Commented] (YARN-8147) TestClientRMService#testGetApplications sporadically fails

    [ 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-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org