[
https://issues.apache.org/jira/browse/HDFS-9073?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14745311#comment-14745311
]
Vinayakumar B commented on HDFS-9073:
-------------------------------------
Since HDFS-9067 is fixed now and it has exposed a util in
{{DFSTestUtil#waitForMetric()}}, same can be used to fix this test failure.
> Fix failures in TestLazyPersistLockedMemory#testReleaseOnEviction
> -----------------------------------------------------------------
>
> Key: HDFS-9073
> URL: https://issues.apache.org/jira/browse/HDFS-9073
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: test
> Affects Versions: 3.0.0
> Environment: jenkins
> Reporter: J.Andreina
> Assignee: J.Andreina
> Priority: Critical
>
> Testcase ,TestLazyPersistLockedMemory#testReleaseOnEviction fails with below
> exception
> {noformat}
> java.lang.AssertionError: expected:<1> but was:<0>
> 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.datanode.fsdataset.impl.LazyPersistTestCase.verifyRamDiskJMXMetric(LazyPersistTestCase.java:483)
> at
> org.apache.hadoop.hdfs.server.datanode.fsdataset.impl.TestLazyPersistLockedMemory.testReleaseOnEviction(TestLazyPersistLockedMemory.java:122)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)