Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-5626 Track and Address Flaky tests
  3. HDDS-8374

Fix Flaky Unit Test for TestContainerStateCounts in Recon

    XMLWordPrintableJSON

Details

    Description

      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.
       

      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)
      

      Attachments

        Issue Links

          Activity

            People

              arafat2198 Arafat Khan
              arafat2198 Arafat Khan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: