Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-6416

Use Time#monotonicNow in OpenFileCtx and OpenFileCtxCatch to avoid system clock bugs

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.4.0
    • 2.5.0
    • nfs
    • None
    • Reviewed

    Description

      As cnauroth pointed out in HADOOP-10612, Time#monotonicNow is a more preferred method to use since this isn't subject to system clock bugs (i.e. Someone resets the clock to a time in the past, and then updates don't happen for a long time.)

      Attachments

        1. HDFS-6416.patch
          4 kB
          Abhiraj Butala

        Issue Links

          Activity

            People

              abutala Abhiraj Butala
              brandonli Brandon Li
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: