[ 
https://issues.apache.org/jira/browse/HDFS-6416?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Abhiraj Butala updated HDFS-6416:
---------------------------------

    Attachment: HDFS-6416.patch

Attaching a patch which uses Time.monotonicNow() in OpenFileCtx.java and 
OpenFileCtxCache.java as suggested.

> Use Time#monotonicNow in OpenFileCtx and OpenFileCtxCatch to avoid system 
> clock bugs
> ------------------------------------------------------------------------------------
>
>                 Key: HDFS-6416
>                 URL: https://issues.apache.org/jira/browse/HDFS-6416
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: nfs
>    Affects Versions: 2.4.0
>            Reporter: Brandon Li
>            Priority: Minor
>         Attachments: HDFS-6416.patch
>
>
> 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.)



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to