[
https://issues.apache.org/jira/browse/HDDS-8374?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Attila Doroszlai resolved HDDS-8374.
------------------------------------
Fix Version/s: 1.4.0
Resolution: Fixed
> Fix Flaky Unit Test for TestContainerStateCounts in Recon
> ----------------------------------------------------------
>
> Key: HDDS-8374
> URL: https://issues.apache.org/jira/browse/HDDS-8374
> Project: Apache Ozone
> Issue Type: Sub-task
> Components: Ozone Recon
> Reporter: Mohammad Arafat Khan
> Assignee: Mohammad Arafat Khan
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.4.0
>
>
> The {{testDeletedContainerCount()}} method of {{TestContainerStateCounts}} is
> considered flaky due to the processing order of the container report. If the
> pipeline does not exist, then the container is not added until the next
> container report is processed.
>
> {code:title=https://github.com/adoroszlai/ozone-build-results/blob/master/2023/04/04/21308/unit/hadoop-ozone/recon/org.apache.hadoop.ozone.recon.api.TestContainerStateCounts.txt}
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 11.171 s <<<
> FAILURE! - in org.apache.hadoop.ozone.recon.api.TestContainerStateCounts
> org.apache.hadoop.ozone.recon.api.TestContainerStateCounts.testDeletedContainerCount
> Time elapsed: 11.103 s <<< FAILURE!
> org.opentest4j.AssertionFailedError: expected: <5> but was: <2>
> at org.junit.jupiter.api.AssertionUtils.fail(AssertionUtils.java:55)
> at
> org.junit.jupiter.api.AssertionUtils.failNotEqual(AssertionUtils.java:62)
> at
> org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:150)
> at
> org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:145)
> at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:527)
> at
> org.apache.hadoop.ozone.recon.api.TestContainerStateCounts.testDeletedContainerCount(TestContainerStateCounts.java:383)
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]