[
https://issues.apache.org/jira/browse/HADOOP-14486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16038909#comment-16038909
]
Hongyuan Li commented on HADOOP-14486:
--------------------------------------
[~Sonia] this change work with opendjk 1.7 and oracle 1.8 as well.The oracle
jdk and openJDK 1.7's Files.readAttributes(path, BasicFileAttributes.class)
method get time in second accuracy, the value of which is like XXXXX000,but
openJDK 1.8 and WindowFileAttributes don't.
[[email protected]] i will submit the patch here soon.
my test environment lists below:
os : ubuntu-14.04.5-server-amd64
jdks:
{code}
java-7-1.7.0_131(java version "1.7.0_131", OpenJDK Runtime Environment
(IcedTea 2.6.9) (7u131-2.6.9-0ubuntu0.14.04.2) OpenJDK 64-Bit Server VM (build
24.131-b00, mixed mode));
{code}
{code}
oracle jdk1.8.0_131(java version "1.8.0_131", Java(TM) SE Runtime
Environment (build 1.8.0_131-b11), Java HotSpot(TM) 64-Bit Server VM (build
25.131-b11, mixed mode)) ;
{code}
{code}
openjdk version "1.8.0_111"(openjdk version "1.8.0_111",OpenJDK Runtime
Environment (build 1.8.0_111-8u111-b14-3~14.04.1-b14),OpenJDK 64-Bit Server VM
(build 25.111-b14, mixed mode))
{code}
using {{openjdk version "1.8.0_111"}} will encounter this problem.
> TestSFTPFileSystem#testGetAccessTime test failure
> -------------------------------------------------
>
> Key: HADOOP-14486
> URL: https://issues.apache.org/jira/browse/HADOOP-14486
> Project: Hadoop Common
> Issue Type: Bug
> Affects Versions: 3.0.0-alpha4
> Environment: Ubuntu 14.04
> x86, ppc64le
> $ java -version
> openjdk version "1.8.0_111"
> OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-3~14.04.1-b14)
> OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)
> Reporter: Sonia Garudi
> Assignee: Hongyuan Li
>
> The TestSFTPFileSystem#testGetAccessTime test fails consistently with the
> error below:
> {code}
> java.lang.AssertionError: expected:<1496496040072> but was:<1496496040000>
> at org.junit.Assert.fail(Assert.java:88)
> at org.junit.Assert.failNotEquals(Assert.java:743)
> at org.junit.Assert.assertEquals(Assert.java:118)
> at org.junit.Assert.assertEquals(Assert.java:555)
> at org.junit.Assert.assertEquals(Assert.java:542)
> at
> org.apache.hadoop.fs.sftp.TestSFTPFileSystem.testGetAccessTime(TestSFTPFileSystem.java:319)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]