[
https://issues.apache.org/jira/browse/HDFS-6257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14025438#comment-14025438
]
Andrew Wang commented on HDFS-6257:
-----------------------------------
Idea look good, the current check definitely seems racy. Only q, maybe we
should try and check more deterministically, e.g. pause DN cache reports and
wait for a few refresh intervals (1s each) before doing the check.
> TestCacheDirectives#testExceedsCapacity fails occasionally in trunk
> -------------------------------------------------------------------
>
> Key: HDFS-6257
> URL: https://issues.apache.org/jira/browse/HDFS-6257
> Project: Hadoop HDFS
> Issue Type: Test
> Components: caching
> Affects Versions: 2.4.0
> Reporter: Ted Yu
> Assignee: Colin Patrick McCabe
> Priority: Minor
> Attachments: HDFS-6257.001.patch
>
>
> From https://builds.apache.org/job/Hadoop-Hdfs-trunk/1736/ :
> REGRESSION:
> org.apache.hadoop.hdfs.server.namenode.TestCacheDirectives.testExceedsCapacity
> {code}
> Error Message:
> Namenode should not send extra CACHE commands expected:<0> but was:<2>
> Stack Trace:
> java.lang.AssertionError: Namenode should not send extra CACHE commands
> expected:<0> but was:<2>
> 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.hdfs.server.namenode.TestCacheDirectives.testExceedsCapacity(TestCacheDirectives.java:1419)
> {code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)