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

Hongyuan Li edited comment on HADOOP-14430 at 5/26/17 1:55 AM:
---------------------------------------------------------------

[[email protected]] thanks.  i will try HADOOP-14444 whenever i have time.


was (Author: hongyuan li):
[[email protected]] i will try HADOOP-14444 whenever i have time.

> the accessTime of FileStatus returned by SFTPFileSystem's getFileStatus 
> method is always 0
> ------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-14430
>                 URL: https://issues.apache.org/jira/browse/HADOOP-14430
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 2.9.0, 3.0.0-alpha2
>            Reporter: Hongyuan Li
>            Assignee: Hongyuan Li
>            Priority: Trivial
>             Fix For: 2.9.0
>
>         Attachments: HADOOP-14430-001.patch, HADOOP-14430-002.patch
>
>
> the accessTime of FileStatus got by SFTPFileSystem's getFileStatus method is 
> always 0
> {{long accessTime = 0}} in code below; 
>   {code} private FileStatus getFileStatus(ChannelSftp channel, LsEntry 
> sftpFile,
>       Path parentPath) throws IOException {
>     SftpATTRS attr = sftpFile.getAttrs();
>    ……
>     long modTime = attr.getMTime() * 1000; // convert to milliseconds(This is 
> wrong too, according to HADOOP-14431
>     long accessTime = 0;
>   ……
>   }  {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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

Reply via email to