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

Add a nanosecond API to Time/Timer/FakeTimer

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.9.0, 2.7.4, 3.0.0-alpha4, 2.8.2
    • Component/s: util
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Right now Time/Timer export functionality for retrieving time at a millisecond-level precision but not at a nanosecond-level precision, which is required for some applications (there's ~70 usages). Most of these seem not to need mocking functionality for tests; only one class currently mocks this out (LightWeightCache) but we would like to add another as part of HDFS-11615 and want to avoid code duplication. This could be useful for other classes in the future as well.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                xkrogen Erik Krogen
                Reporter:
                xkrogen Erik Krogen
              • Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: