[
https://issues.apache.org/jira/browse/HADOOP-14431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16015200#comment-16015200
]
Hongyuan Li edited comment on HADOOP-14431 at 5/18/17 4:52 AM:
---------------------------------------------------------------
Anybody available for review? [~Arpit Agarwal], [~Chuan Liu], [~Suresh
Srinivas], [~Chris Nauroth] ?
was (Author: hongyuan li):
Anybody available for review? Arpit Agarwal, Chuan Liu, Suresh Srinivas, Chris
Nauroth?
> the modifyTime of FileStatus got by SFTPFileSystem's getFileStatus method is
> wrong
> ----------------------------------------------------------------------------------
>
> Key: HADOOP-14431
> URL: https://issues.apache.org/jira/browse/HADOOP-14431
> Project: Hadoop Common
> Issue Type: Bug
> Components: fs
> Reporter: Hongyuan Li
> Assignee: Hongyuan Li
> Attachments: HADOOP-14431-001.patch
>
>
> {{getFileStatus(ChannelSftp channel, LsEntry sftpFile, Path parentPath)}}
> get FileStatus as 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
> ……
> }
> {code}
> ,which {{attr.getMTime}} return int, which meansthe modTime is wrong
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]