Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-14669

GenericTestUtils.waitFor should use monotonic time

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 3.0.0-alpha4
    • 2.9.0, 3.0.0-beta1
    • test
    • Reviewed

    Description

      GenericTestUtils.waitFor should be calling Time.monotonicNow rather than Time.now. Otherwise if the system clock adjusts during unit testing the timeout period could be incorrect.

      Attachments

        1. HADOOP-14669.003.patch
          0.9 kB
          Daniel Templeton
        2. HADOOP-14669.002.patch
          1 kB
          Daniel Templeton
        3. HADOOP-14669.001.patch
          1 kB
          Daniel Templeton

        Issue Links

          Activity

            People

              templedf Daniel Templeton
              jlowe Jason Darrell Lowe
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: