[ 
https://issues.apache.org/jira/browse/MAPREDUCE-6658?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Eric Badger updated MAPREDUCE-6658:
-----------------------------------
    Attachment: MAPREDUCE-6658.001.patch

[~ajisakaa], I tracked down the issue. Indeed, it was my code that broke the 
tests. I'm not sure why I wasn't able to reproduce the failures consistently, 
but maybe that was another side effect of my earlier changes. The bug was that 
the MiniYARNCluster was explicitly calling transitionToActive on the resource 
manager with index 0. This overwrote some conf properties and reset the cluster 
max priority property back to DEFAULT. 

I'm attaching a patch that fixes this issue by only transition the RM with 
index 0 to active if we are in an HA cluster. 

> TestMRJobs fails
> ----------------
>
>                 Key: MAPREDUCE-6658
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-6658
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: test
>            Reporter: Akira AJISAKA
>            Assignee: Eric Badger
>         Attachments: MAPREDUCE-6658.001.patch
>
>
> TestMRJobs#testJobWithChangePriority fails.
> {noformat}
> Running org.apache.hadoop.mapreduce.v2.TestMRJobs
> Tests run: 12, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 446.855 sec 
> <<< FAILURE! - in org.apache.hadoop.mapreduce.v2.TestMRJobs
> testJobWithChangePriority(org.apache.hadoop.mapreduce.v2.TestMRJobs)  Time 
> elapsed: 21.477 sec  <<< FAILURE!
> java.lang.AssertionError: expected:<DEFAULT> but was:<HIGH>
>       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:144)
>       at 
> org.apache.hadoop.mapreduce.v2.TestMRJobs.testJobWithChangePriority(TestMRJobs.java:276)
> {noformat}



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

Reply via email to