Details
-
Bug
-
Status: Resolved
-
Trivial
-
Resolution: Fixed
-
2.9.0, 3.0.0-alpha2
-
None
Description
the accessTime of FileStatus got by SFTPFileSystem's getFileStatus method is always 0
long accessTime = 0 in code below;
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; …… }
Attachments
Attachments
Issue Links
- breaks
-
HADOOP-14486 TestSFTPFileSystem#testGetAccessTime test failure using openJDK 1.8.0
- Resolved