Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-14430

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.9.0, 3.0.0-alpha2
    • Fix Version/s: 2.9.0, 3.0.0-alpha4
    • Component/s: fs
    • Labels:
      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

        1. HADOOP-14430-002.patch
          2 kB
          Hongyuan Li
        2. HADOOP-14430-001.patch
          0.9 kB
          Hongyuan Li

          Issue Links

            Activity

              People

              • Assignee:
                Hongyuan Li Hongyuan Li
                Reporter:
                Hongyuan Li Hongyuan Li
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: