[ 
https://issues.apache.org/jira/browse/HADOOP-4225?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12638168#action_12638168
 ] 

Tsz Wo (Nicholas), SZE commented on HADOOP-4225:
------------------------------------------------

I think the correct way to fix this is changing logOpenFile(...) to write only 
mtime but not atime.  However, this will introduce a layout change.

+1 to the patch.  Konstantin's change makes the code more clear.  Otherwise, it 
is hard to understand why writing the same number twice.

> FSEditLog logs modification time instead of access time.
> --------------------------------------------------------
>
>                 Key: HADOOP-4225
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4225
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: dfs
>    Affects Versions: 0.19.0
>            Reporter: Konstantin Shvachko
>            Assignee: Konstantin Shvachko
>            Priority: Blocker
>             Fix For: 0.19.0
>
>         Attachments: LogATime.patch
>
>
> {{FSEditLog.logOpenFile()}} does not persist accessTime but modificationTime 
> instead. Should be {{getAccessTime()}}.
> Introduced in HADOOP-1869.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to