You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Brahma Reddy Battula (JIRA)" <ji...@apache.org> on 2017/06/06 04:30:18 UTC
[jira] [Updated] (HADOOP-14431) ModifyTime of FileStatus returned
by SFTPFileSystem's getFileStatus method is wrong
[ https://issues.apache.org/jira/browse/HADOOP-14431?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brahma Reddy Battula updated HADOOP-14431:
------------------------------------------
Summary: ModifyTime of FileStatus returned by SFTPFileSystem's getFileStatus method is wrong (was: the modifyTime of FileStatus returned by SFTPFileSystem's getFileStatus method is wrong)
> ModifyTime of FileStatus returned 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
> Fix For: 2.9.0, 3.0.0-alpha4
>
> Attachments: HADOOP-14431-001.patch, HADOOP-14431-002.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: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org