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

Yiqun Lin commented on HDFS-11632:
----------------------------------

Thanks [~xyao] for reporting this.
I am thinking the root cause of this is that the cache blocks info is not 
completely reported to namenode when Jenkins is busy. In addition, I see the 
cache report interval time is 10s by default. So I think there is a chance to 
cause the test failure.
Hi [~xyao], any comments for this? Will attach the patch after your further 
comments. Thanks.

> TestCacheDirectives.testWaitForCachedReplicas failed intermittently 
> --------------------------------------------------------------------
>
>                 Key: HDFS-11632
>                 URL: https://issues.apache.org/jira/browse/HDFS-11632
>             Project: Hadoop HDFS
>          Issue Type: Test
>            Reporter: Xiaoyu Yao
>
> This was found in recent Jenkins 
> [run|https://builds.apache.org/job/PreCommit-HDFS-Build/18997/testReport/org.apache.hadoop.hdfs.server.namenode/TestCacheDirectives/testWaitForCachedReplicas/]
> {code}
> Error Message
> expected:<16384> but was:<20480>
> Stacktrace
> java.lang.AssertionError: expected:<16384> but was:<20480>
>       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.hdfs.server.namenode.TestCacheDirectives.testWaitForCachedReplicas(TestCacheDirectives.java:965)
> Standard Output
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to