Mukul Kumar Singh created HDFS-12095:
----------------------------------------
Summary: Block Storage: Fix cblock unit test failures in
TestLocalBlockCache, TestCBlockReadWrite and TestBufferManager
Key: HDFS-12095
URL: https://issues.apache.org/jira/browse/HDFS-12095
Project: Hadoop HDFS
Issue Type: Sub-task
Components: ozone
Affects Versions: HDFS-7240
Reporter: Mukul Kumar Singh
Assignee: Mukul Kumar Singh
Fix For: HDFS-7240
Cblock test TestLocalBlockCache, TestCBlockReadWrite and TestBufferManager are
failing quite frequently.
Please find the analysis for each of these failure as following
*TestCBlockReadWrite* - Times out in the Jenkins run however it passes
successfully in local runs
*TestCBlockReadWrite* - This test fails because of invalid assertion, as there
can be time triggered flushes which are triggered and got finished, hence
number of completed flushes need not be '1'
{code}
java.lang.AssertionError: expected:<1> but was:<13>
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.cblock.TestCBlockReadWrite.testContainerWrites(TestCBlockReadWrite.java:245)
{code}
*TestBufferManager* - This assertion failed because there might be flushes
which are in progress. A sleep need to be introduced to ensure that the entire
dirty buffer is flused
{code}
java.lang.AssertionError: expected:<16384> but was:<15976>
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.cblock.TestBufferManager.testMultipleBuffersFlush(TestBufferManager.java:346)
{code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]