Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-4177

yarn.util.Clock should not be used to time a duration or time interval

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      There're many places uses Clock to time intervals, which is dangerous as commented by stevel@apache.org in HADOOP-12409. Instead, we should use hadoop.util.Timer#monotonicNow() to get monotonic time. Or we could provide a MonotonicClock in yarn.util considering the consistency of code.

      Attachments

        1. YARN-4177.001.patch
          3 kB
          Xianyin Xin
        2. YARN-4177.002.patch
          20 kB
          Xianyin Xin

        Issue Links

          Activity

            People

              xinxianyin Xianyin Xin
              xinxianyin Xianyin Xin
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated: