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

Attila Doroszlai resolved HDDS-6401.
------------------------------------
    Fix Version/s: 1.3.0
       Resolution: Fixed

> Fix flaky TestFilePerBlockStrategy.testWriteAndReadChunkMultipleTimes
> ---------------------------------------------------------------------
>
>                 Key: HDDS-6401
>                 URL: https://issues.apache.org/jira/browse/HDDS-6401
>             Project: Apache Ozone
>          Issue Type: Test
>            Reporter: UENISHI Kota
>            Assignee: UENISHI Kota
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.3.0
>
>
> When ChunkUtils.writeData() finishes too fast, elapsed time for writing data 
> in test case becomes zero because it's resolution is a bit rough, in 
> milliseconds. That leads to the failure of test assertion that checks elapsed 
> time being >0. Here, the check must be on written bytes and ops.
> I think this failure does not affect any released version, but current master 
> HEAD is deterministically failing in the unit test due to this issue.
> {quote}{{2022-03-02 19:29:26,493 [main] INFO volume.HddsVolume 
> (HddsVolume.java:<init>(120)) - Creating HddsVolume: 
> /tmp/junit871563182678035731/hdds of storage type : null capacity : 
> 9223372036854775807}}
> {{{}2022-03-02 19:29:27,280 [main] WARN util.NativeCodeLoader 
> (NativeCodeLoader.java:<clinit>(60)) - Unable to load native-hadoop library 
> for your platform... using builtin-java classes where 
> applicable{}}}{{{}java.lang.AssertionError{}}}
> {{at org.junit.Assert.fail(Assert.java:87)}}
> {{at org.junit.Assert.assertTrue(Assert.java:42)}}
> {{at org.junit.Assert.assertTrue(Assert.java:53)}}
> {{at 
> org.apache.hadoop.ozone.container.keyvalue.impl.CommonChunkManagerTestCases.testWriteAndReadChunkMultipleTimes(CommonChunkManagerTestCases.java:228)}}
> {{at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)}}
> {{at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)}}
> {{at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)}}
> {{....}}{quote}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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

Reply via email to