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

Wangda Tan commented on YARN-2930:
----------------------------------

[~rohithsharma], I've looked into this, found the root cause, so I took over 
since it causes other Jenkins job failure.

It is caused by some other test(s) write node label to FS, and 
TestRMRestart.testRMRestartRecoveringNodeLabelManager loaded previously wrote 
node label store from FS when starting.

I've done a patch will allocate a random temp directory for writing node labels 
data, and will cleanup when JVM exit. Please let me know your comments.

Thanks,
Wangda

> TestRMRestart#testRMRestartRecoveringNodeLabelManager sometimes fails against 
> Java 8
> ------------------------------------------------------------------------------------
>
>                 Key: YARN-2930
>                 URL: https://issues.apache.org/jira/browse/YARN-2930
>             Project: Hadoop YARN
>          Issue Type: Test
>            Reporter: Ted Yu
>            Assignee: Rohith
>            Priority: Minor
>
> From https://builds.apache.org/job/Hadoop-Yarn-trunk-Java8/31/console :
> {code}
> testRMRestartRecoveringNodeLabelManager[0](org.apache.hadoop.yarn.server.resourcemanager.TestRMRestart)
>   Time elapsed: 0.136 sec  <<< FAILURE!
> java.lang.AssertionError: expected:<1> but was:<2>
>       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.testRMRestartRecoveringNodeLabelManager(TestRMRestart.java:2100)
> testRMRestartRecoveringNodeLabelManager[1](org.apache.hadoop.yarn.server.resourcemanager.TestRMRestart)
>   Time elapsed: 0.081 sec  <<< FAILURE!
> java.lang.AssertionError: expected:<1> but was:<2>
>       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.testRMRestartRecoveringNodeLabelManager(TestRMRestart.java:2100)
> {code}



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

Reply via email to