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

2017-05-17 Thread Hongyuan Li (JIRA)

 [ 
https://issues.apache.org/jira/browse/HADOOP-14430?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hongyuan Li updated HADOOP-14430:
-
Description: 
the accessTime of FileStatus got by SFTPFileSystem's getFileStatus method is 
always 0
{{long accessTime = 0}} in 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(This is 
wrong too, according to HADOOP-14431

long accessTime = 0;

  ……

  }  {code}

  was:
the accessTime of FileStatus got by SFTPFileSystem's getFileStatus method is 
always 0
{{long accessTime = 0}} in 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

long accessTime = 0;

  ……

  }  {code}


> 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
> Attachments: HADOOP-14430-001.patch, HADOOP-14430-002.patch
>
>
> the accessTime of FileStatus got by SFTPFileSystem's getFileStatus method is 
> always 0
> {{long accessTime = 0}} in 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(This is 
> wrong too, according to HADOOP-14431
> long accessTime = 0;
>   ……
>   }  {code}



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

-
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org



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

2017-05-17 Thread Hongyuan Li (JIRA)

 [ 
https://issues.apache.org/jira/browse/HADOOP-14430?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hongyuan Li updated HADOOP-14430:
-
Attachment: HADOOP-14430-002.patch

add junit test

> 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
> Attachments: HADOOP-14430-001.patch, HADOOP-14430-002.patch
>
>
> the accessTime of FileStatus got by SFTPFileSystem's getFileStatus method is 
> always 0
> {{long accessTime = 0}} in 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
> long accessTime = 0;
>   ……
>   }  {code}



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

-
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org



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

2017-05-16 Thread Hongyuan Li (JIRA)

 [ 
https://issues.apache.org/jira/browse/HADOOP-14430?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hongyuan Li updated HADOOP-14430:
-
Description: 
the accessTime of FileStatus got by SFTPFileSystem's getFileStatus method is 
always 0
{{long accessTime = 0}} in 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

long accessTime = 0;

  ……

  }  {code}

  was:
the accessTime of FileStatus got by SFTPFileSystem's getFileStatus method is 
always 0
{long accessTime = 0} in 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

long accessTime = 0;

  ……

  }  {code}


> 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
> Attachments: HADOOP-14430-001.patch
>
>
> the accessTime of FileStatus got by SFTPFileSystem's getFileStatus method is 
> always 0
> {{long accessTime = 0}} in 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
> long accessTime = 0;
>   ……
>   }  {code}



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

-
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org



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

2017-05-16 Thread Hongyuan Li (JIRA)

 [ 
https://issues.apache.org/jira/browse/HADOOP-14430?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hongyuan Li updated HADOOP-14430:
-
Description: 
the accessTime of FileStatus got by SFTPFileSystem's getFileStatus method is 
always 0
{long accessTime = 0} in 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

long accessTime = 0;

  ……

  }  {code}

  was:
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;

  ……

  }


> 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
> Attachments: HADOOP-14430-001.patch
>
>
> the accessTime of FileStatus got by SFTPFileSystem's getFileStatus method is 
> always 0
> {long accessTime = 0} in 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
> long accessTime = 0;
>   ……
>   }  {code}



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

-
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org



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

2017-05-16 Thread Hongyuan Li (JIRA)

 [ 
https://issues.apache.org/jira/browse/HADOOP-14430?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hongyuan Li updated HADOOP-14430:
-
Attachment: HADOOP-14430-001.patch

get access time by SftpATTRS  getATime method

> 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
> Attachments: HADOOP-14430-001.patch
>
>
> 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-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org



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

2017-05-16 Thread Hongyuan Li (JIRA)

 [ 
https://issues.apache.org/jira/browse/HADOOP-14430?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hongyuan Li updated HADOOP-14430:
-
Status: Patch Available  (was: Open)

get access time by SftpATTRS getATime method

> 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
> Attachments: HADOOP-14430-001.patch
>
>
> 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-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org



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

2017-05-16 Thread Hongyuan Li (JIRA)

 [ 
https://issues.apache.org/jira/browse/HADOOP-14430?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hongyuan Li updated HADOOP-14430:
-
Description: 
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;

  ……

  }

  was:
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;
  ……
  }


> 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-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org