hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sunil G (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (YARN-5037) TestRMRestart#testQueueMetricsOnRMRestart random faiure
Date Thu, 07 Jul 2016 16:40:10 GMT

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

Sunil G edited comment on YARN-5037 at 7/7/16 4:39 PM:
-------------------------------------------------------

Thanks [~sandflee] for the patch. Yes, APP_REMOVED is not processed by the scheduler here.
So we could check whether scheduler dispatcher has processed this event , but checking whether
scheduler has removed from *applications* is also fine and better. But I think we can make
this also a timed wait instead of looping always. like in {{MockRM#waitForState}}. Thoughts?


was (Author: sunilg):
Thanks [~sandflee] for the patch. APP_REMOVED is not processed by the scheduler here. So we
could check whether scheduler dispatcher has processed this event , but checking whether scheduler
has removed from *applications* is also fine. But I think we can make this also a timed wait
instead of looping always. like in {{waitForState}}. Thoughts?

> TestRMRestart#testQueueMetricsOnRMRestart random faiure
> -------------------------------------------------------
>
>                 Key: YARN-5037
>                 URL: https://issues.apache.org/jira/browse/YARN-5037
>             Project: Hadoop YARN
>          Issue Type: Test
>            Reporter: sandflee
>            Assignee: sandflee
>         Attachments: YARN-5037.01.patch
>
>
> https://builds.apache.org/job/PreCommit-YARN-Build/11326/artifact/patchprocess/patch-unit-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-server_hadoop-yarn-server-resourcemanager-jdk1.7.0_95.txt
> {noformat}
> Tests run: 28, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 67.159 sec <<<
FAILURE! - in org.apache.hadoop.yarn.server.resourcemanager.TestRMRestart
> testQueueMetricsOnRMRestart(org.apache.hadoop.yarn.server.resourcemanager.TestRMRestart)
 Time elapsed: 2.561 sec  <<< FAILURE!
> java.lang.AssertionError: expected:<2> 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.junit.Assert.assertEquals(Assert.java:542)
> 	at org.apache.hadoop.yarn.server.resourcemanager.TestRMRestart.assertQueueMetrics(TestRMRestart.java:1874)
> 	at org.apache.hadoop.yarn.server.resourcemanager.TestRMRestart.testQueueMetricsOnRMRestart(TestRMRestart.java:1849)
> {noformat}



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

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


Mime
View raw message