Uploaded image for project: 'Hadoop Distributed Data Store'
  1. Hadoop Distributed Data Store
  2. HDDS-1703

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Invalid
    • Affects Version/s: 0.4.0
    • Fix Version/s: None
    • Component/s: test
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: