[
https://issues.apache.org/jira/browse/HADOOP-14431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16038152#comment-16038152
]
Hudson commented on HADOOP-14431:
---------------------------------
SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #11828 (See
[https://builds.apache.org/job/Hadoop-trunk-Commit/11828/])
HADOOP-14431. ModifyTime of FileStatus returned by SFTPFileSystem's (brahma:
rev 66c6fd831497944f4f49c5ce42c69a302b7d7bc0)
* (edit)
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/sftp/SFTPFileSystem.java
* (edit)
hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/sftp/TestSFTPFileSystem.java
> 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: [email protected]
For additional commands, e-mail: [email protected]