You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by st...@apache.org on 2017/06/26 12:49:36 UTC

[02/50] hadoop git commit: HADOOP-14486 TestSFTPFileSystem#testGetAccessTime test failure using openJDK 1.8.0. Contributed by Hongyuan Li.

HADOOP-14486 TestSFTPFileSystem#testGetAccessTime test failure using openJDK 1.8.0.
Contributed by Hongyuan Li.


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/942ecbbc
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/942ecbbc
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/942ecbbc

Branch: refs/heads/HADOOP-13345
Commit: 942ecbbc9876427051965ddd167df5cc1cc253e3
Parents: e855cc4
Author: Steve Loughran <st...@apache.org>
Authored: Fri Jun 16 09:45:22 2017 +0100
Committer: Steve Loughran <st...@apache.org>
Committed: Fri Jun 16 09:45:22 2017 +0100

----------------------------------------------------------------------
 .../src/test/java/org/apache/hadoop/fs/sftp/TestSFTPFileSystem.java | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/942ecbbc/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/sftp/TestSFTPFileSystem.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/sftp/TestSFTPFileSystem.java b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/sftp/TestSFTPFileSystem.java
index 3d57dab..e8eedd9 100644
--- a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/sftp/TestSFTPFileSystem.java
+++ b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/sftp/TestSFTPFileSystem.java
@@ -315,6 +315,7 @@ public class TestSFTPFileSystem {
     java.nio.file.Path path = (local).pathToFile(file).toPath();
     long accessTime1 = Files.readAttributes(path, BasicFileAttributes.class)
         .lastAccessTime().toMillis();
+    accessTime1 = (accessTime1 / 1000) * 1000;
     long accessTime2 = sftpFs.getFileStatus(file).getAccessTime();
     assertEquals(accessTime1, accessTime2);
   }


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