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

GenericTestUtils.waitFor should use monotonic time

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 3.0.0-alpha4
    • Fix Version/s: 2.9.0, 3.0.0-beta1
    • Component/s: test
    • Labels:
    • Hadoop Flags:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: