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

Fix TestOMRatisSnapshots#testInstallIncrementalSnapshotWithFailure

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0
    • None

    Description

      https://issues.apache.org/jira/browse/HDDS-8876 fixed the flakiness in testInstallIncrementalSnapshotWithFailure by commenting out the part that checks the metrics. 

      By uncommenting this part, the test has a 5% chance of failure. The metrics depend on picking up that

      • there is a corruption on the candidate dir
      • Ratis returns a result of SNAPSHOT_UNAVAILABLE
      • Candidate dir is getting cleaned up
      • The follower is forced to take another full snapshot

      During the failed runs, the corruption isn't picked up and the Ratis InstallSnapshotResult is SUCCESS. Therefore, the snapshot installation isn't repeated.

      Attachments

        Issue Links

          Activity

            People

              xbis Christos Bisias
              xbis Christos Bisias
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: