You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Hongyuan Li (JIRA)" <ji...@apache.org> on 2017/05/17 02:38:04 UTC

[jira] [Created] (HADOOP-14430) the accessTime of FileStatus got by SFTPFileSystem's getFileStatus method is always 0

Hongyuan Li created HADOOP-14430:
------------------------------------

             Summary: the accessTime of FileStatus got 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: 3.0.0-alpha2
            Reporter: Hongyuan Li
            Assignee: Hongyuan Li
            Priority: Trivial


the accessTime of FileStatus got by SFTPFileSystem's getFileStatus method is always 0

  private FileStatus getFileStatus(ChannelSftp channel, LsEntry sftpFile,
      Path parentPath) throws IOException {

    SftpATTRS attr = sftpFile.getAttrs();
   ……
    long modTime = attr.getMTime() * 1000; // convert to milliseconds
    long accessTime = 0;
  ……
  }



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

---------------------------------------------------------------------
To unsubscribe, e-mail: common-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-dev-help@hadoop.apache.org