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

Sreejith MV updated HDFS-13003:
-------------------------------
        Summary: Access time should be considered when setTimes is called on a 
dir  (was: [OIV] Irrelevant access time for the dirs when run with Delimited 
option  )
    Description: 
Access time for a directory can be modified with 
DistributedFileSystem.setTimes().

But this changed access time is not stored in the fsimage.

After restart of namenode, it will be lost and reset as zero.  

  was:
*#hdfs oiv -i fsimage_0000000000000018779 -p Delimited -o test*
2018-01-09 18:37:13,218 INFO offlineImageViewer.PBImageTextWriter: Loading 
string table
2018-01-09 18:37:13,227 INFO offlineImageViewer.FSImageHandler: Loading 2 
strings
2018-01-09 18:37:13,229 INFO offlineImageViewer.PBImageTextWriter: Loading 
inode references
2018-01-09 18:37:13,229 INFO offlineImageViewer.FSImageHandler: Loading inode 
references
2018-01-09 18:37:13,235 INFO offlineImageViewer.FSImageHandler: Loaded 0 inode 
references
2018-01-09 18:37:13,236 INFO offlineImageViewer.PBImageTextWriter: Loading 
directories
2018-01-09 18:37:13,240 INFO offlineImageViewer.PBImageTextWriter: Loading 
directories in INode section.
2018-01-09 18:37:13,263 INFO offlineImageViewer.PBImageTextWriter: Found 1 
directories in INode section.
2018-01-09 18:37:13,264 INFO offlineImageViewer.PBImageTextWriter: Finished 
loading directories in 25ms
2018-01-09 18:37:13,264 INFO offlineImageViewer.PBImageTextWriter: Loading 
INode directory section.
2018-01-09 18:37:13,267 INFO offlineImageViewer.PBImageTextWriter: Scanned 0 
INode directories to build namespace.
2018-01-09 18:37:13,267 INFO offlineImageViewer.PBImageTextWriter: Finished 
loading INode directory section in 3ms

*#cat test*
Path    Replication     ModificationTime        *AccessTime*      
PreferredBlockSize      BlocksCount     FileSize        NSQUOTA DSQUOTA 
Permission      UserName        GroupName
/dirSetExpr4    0       2017-12-28 23:39        *1970-01-01 08:00*        0     
  0       0       -1      -1      drwxr-xr-x      root   hadoop
/dirSetExpr6    0       2017-12-28 23:39        *1970-01-01 08:00*        0     
  0       0       -1      -1      drwxr-xr-x      root   hadoop
/dirSetExpr3    0       2017-12-28 23:39        *1970-01-01 08:00*        0     
  0       0       -1      -1      drwxr-xr-x      root   hadoop
/dirSetExpr2    0       2017-12-28 23:39        *1970-01-01 08:00 *       0     
  0       0       -1      -1      drwxr-xr-x      root   hadoop
/dirSetExpr7    0       2017-12-28 23:39        *1970-01-01 08:00*        0     
  0       0       -1      -1      drwxr-xr-x      root   hadoop
/dirSetExpr5/fsumm261970.txt    3       2017-12-28 22:10        2017-12-28 
22:10        1048576 1       38      0       0       -rw-r--r--      root   
hadoop
/dirSetExpr6/fsumm261970.txt    3       2017-12-28 22:10        2017-12-28 
22:10        1048576 1       38      0       0       -rw-r--r--      root   
hadoop




> Access time should be considered when setTimes is called on a dir
> -----------------------------------------------------------------
>
>                 Key: HDFS-13003
>                 URL: https://issues.apache.org/jira/browse/HDFS-13003
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions: 2.7.0
>            Reporter: Sreejith MV
>            Assignee: Sreejith MV
>            Priority: Minor
>         Attachments: HDFS-13003.patch
>
>
> Access time for a directory can be modified with 
> DistributedFileSystem.setTimes().
> But this changed access time is not stored in the fsimage.
> After restart of namenode, it will be lost and reset as zero.  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to