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

Binglin Chang updated HDFS-7471:
--------------------------------
    Attachment: HDFS-7471.001.patch

Simple work around to increase expire interval.
After investigate the code, I suspect the current countVersion logic may have 
race conditions, maybe someone more familiar with the code can provide a better 
fix.  

> TestDatanodeManager#testNumVersionsReportedCorrect occasionally fails
> ---------------------------------------------------------------------
>
>                 Key: HDFS-7471
>                 URL: https://issues.apache.org/jira/browse/HDFS-7471
>             Project: Hadoop HDFS
>          Issue Type: Test
>          Components: test
>    Affects Versions: 3.0.0
>            Reporter: Ted Yu
>            Assignee: Binglin Chang
>         Attachments: HDFS-7471.001.patch
>
>
> From https://builds.apache.org/job/Hadoop-Hdfs-trunk/1957/ :
> {code}
> FAILED:  
> org.apache.hadoop.hdfs.server.blockmanagement.TestDatanodeManager.testNumVersionsReportedCorrect
> Error Message:
> The map of version counts returned by DatanodeManager was not what it was 
> expected to be on iteration 237 expected:<0> but was:<1>
> Stack Trace:
> java.lang.AssertionError: The map of version counts returned by 
> DatanodeManager was not what it was expected to be on iteration 237 
> expected:<0> 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.apache.hadoop.hdfs.server.blockmanagement.TestDatanodeManager.testNumVersionsReportedCorrect(TestDatanodeManager.java:150)
> {code}



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

Reply via email to