[ 
https://issues.apache.org/jira/browse/HADOOP-15783?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16626659#comment-16626659
 ] 

Akira Ajisaka commented on HADOOP-15783:
----------------------------------------

In JDK10+, File.lastModified includes milliseconds 
(https://bugs.openjdk.java.net/browse/JDK-8177809), however, SFTPFileSystem 
lacks the information. Therefore the test fails.

> [JDK10] TestSFTPFileSystem.testGetModifyTime fails
> --------------------------------------------------
>
>                 Key: HADOOP-15783
>                 URL: https://issues.apache.org/jira/browse/HADOOP-15783
>             Project: Hadoop Common
>          Issue Type: Sub-task
>            Reporter: Akira Ajisaka
>            Priority: Major
>
> {noformat}
> [ERROR] Tests run: 11, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 
> 5.039 s <<< FAILURE! - in org.apache.hadoop.fs.sftp.TestSFTPFileSystem
> [ERROR] testGetModifyTime(org.apache.hadoop.fs.sftp.TestSFTPFileSystem)  Time 
> elapsed: 0.095 s  <<< FAILURE!
> java.lang.AssertionError: expected:<1537836464942> but was:<1537836464000>
>       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.testGetModifyTime(TestSFTPFileSystem.java:329)
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to