hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vinod Kumar Vavilapalli (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-1854) TestRMHA#testStartAndTransitions Fails
Date Fri, 21 Mar 2014 00:58:43 GMT

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

Vinod Kumar Vavilapalli commented on YARN-1854:
-----------------------------------------------

bq. java.lang.AssertionError: Incorrect value for metric availableMB expected:<2048>
but was:<4096>
This error seems entirely not possible from what I see in the code.

The solution in the patch will work, but there are cases where we are inspecting decrease
of a counter too. And there, we will need to wait till scheduler seems the change.

bq. For races like this, where we might be trying to verify something too soon, it should
be okay to verify after waiting for a little bit.
I like this solution of Karthik's better than what is done in the patch. Shall we do that?
Basically verifyClusterMetrics() util itself loops till it can find all the metrics same as
what is expected or till a timeout happens.

> TestRMHA#testStartAndTransitions Fails
> --------------------------------------
>
>                 Key: YARN-1854
>                 URL: https://issues.apache.org/jira/browse/YARN-1854
>             Project: Hadoop YARN
>          Issue Type: Test
>    Affects Versions: 2.4.0
>            Reporter: Mit Desai
>            Assignee: Rohith
>            Priority: Blocker
>         Attachments: YARN-1854.patch
>
>
> {noformat}
> testStartAndTransitions(org.apache.hadoop.yarn.server.resourcemanager.TestRMHA)  Time
elapsed: 5.883 sec  <<< FAILURE!
> java.lang.AssertionError: Incorrect value for metric availableMB expected:<2048>
but was:<4096>
> 	at org.junit.Assert.fail(Assert.java:93)
> 	at org.junit.Assert.failNotEquals(Assert.java:647)
> 	at org.junit.Assert.assertEquals(Assert.java:128)
> 	at org.junit.Assert.assertEquals(Assert.java:472)
> 	at org.apache.hadoop.yarn.server.resourcemanager.TestRMHA.assertMetric(TestRMHA.java:396)
> 	at org.apache.hadoop.yarn.server.resourcemanager.TestRMHA.verifyClusterMetrics(TestRMHA.java:387)
> 	at org.apache.hadoop.yarn.server.resourcemanager.TestRMHA.testStartAndTransitions(TestRMHA.java:160)
> Results :
> Failed tests: 
>   TestRMHA.testStartAndTransitions:160->verifyClusterMetrics:387->assertMetric:396
Incorrect value for metric availableMB expected:<2048> but was:<4096>
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message