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

Audit for durations that should be measured via Time.monotonicNow

Add voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

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

    Description

      Whenever we are measuring a time delta or duration in the same process, the timestamps probably should be using Time.monotonicNow rather than Time.now or System.currentTimeMillis. The latter two are directly reading the system clock which can move faster or slower than actual time if the system is undergoing a time adjustment (e.g.: adjtime or admin sets a new system time).

      We should go through the code base and identify places where the code is using the system clock but really should be using monotonic time.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            chetna Chetna Chaudhari
            jlowe Jason Darrell Lowe

            Dates

              Created:
              Updated:

              Slack

                Issue deployment