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

Add a nanosecond API to Time/Timer/FakeTimer

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.9.0, 2.7.4, 3.0.0-alpha4, 2.8.2
    • util
    • None
    • 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

        1. HADOOP-14276.000.patch
          9 kB
          Erik Krogen

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: