Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-1703

Freon uses wait/notify instead of polling to eliminate the test result errors.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Invalid
    • 0.4.0
    • None
    • test
    • None

    Description

      After HDDS-1532, Freon has an efficient concurrent testing framework. In the new framework, the main thread checks every 5s to verify whether the test is completed (or an exception occurred), which will eventually introduce a maximum error of 5s.

      In most cases, Freon's test results are at minutes or tens of minutes level, thus a 5s error is not significant, but in some particularly small tests, a 5s error may have a significant impact.

      Therefore, we can use the combination of Object.wait() + Object.notify()  instead of polling to completely eliminate this error.

      Attachments

        Issue Links

          Activity

            People

              xudongcao Xudong Cao
              xudongcao Xudong Cao
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: