Repository: hadoop Updated Branches: refs/heads/branch-2 12cb3456d -> 4e6348f34
HADOOP-14486 TestSFTPFileSystem#testGetAccessTime test failure using openJDK 1.8.0. Contributed by Hongyuan Li. (cherry picked from commit 942ecbbc9876427051965ddd167df5cc1cc253e3) Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/4e6348f3 Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/4e6348f3 Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/4e6348f3 Branch: refs/heads/branch-2 Commit: 4e6348f346490c11523bf9e195d9c4ae81953587 Parents: 12cb345 Author: Steve Loughran <[email protected]> Authored: Fri Jun 16 09:46:34 2017 +0100 Committer: Steve Loughran <[email protected]> Committed: Fri Jun 16 09:46:34 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/4e6348f3/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 ae13006..4be73e7 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 @@ -316,6 +316,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: [email protected] For additional commands, e-mail: [email protected]
