hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rohith (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-1854) TestRMHA#testStartAndTransitions Fails
Date Thu, 20 Mar 2014 06:58:44 GMT

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

Rohith commented on YARN-1854:
------------------------------

I ran multiple times in Linux and windows.I didnt fint any test case failure.:-(

After seeing 2 different failure trace by [~mitdesai]
1. 1st failure trace : It is expected have  availabelMB as 2048. Can you please provide console
out for failed test.

2. 2nd failure trace : There is race in test i.e MockRM.submitApp() return when application
is in ACCEPTED, but QueueMetrics updated at APP_ATTEMPT_ADDED event. There is high chance
of getting queue metrics before app attempt is Scheduled.
I attached patch for addressing 2nd test failure trace.

> 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