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

Yiqun Lin updated HADOOP-13818:
-------------------------------
    Attachment: HADOOP-13818.002.patch

I looked into again for this and found a detail of this. It seemed the test 
failed in line 414, as this line:
{code}
    fileSys.setTimes(path, newModTime, -1);
    checkTimesStatus(path, newModTime, newAccTime);
{code}
It means that the line {{fileSys.setTimes(path, newModTime, newAccTime)}} runs 
correctly before line 414, the related codes:
{code}
    fileSys.setTimes(path, newModTime, newAccTime);
    checkTimesStatus(path, newModTime, newAccTime);
{code}
So I have one another thought that the param null mTime and aTime will trigger 
the {{BasicFileAttributeView.setTimes}} fails in some filesystem, right? Since 
my local env can't reproduce this failure, I'd like to wait for some others 
response. Attach a corresponding patch based on this thought.

> TestLocalFileSystem#testSetTimes fails
> --------------------------------------
>
>                 Key: HADOOP-13818
>                 URL: https://issues.apache.org/jira/browse/HADOOP-13818
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: test
>            Reporter: Akira Ajisaka
>            Assignee: Yiqun Lin
>            Priority: Minor
>         Attachments: HADOOP-13818.001.patch, HADOOP-13818.002.patch
>
>
> {noformat}
> Running org.apache.hadoop.fs.TestLocalFileSystem
> Tests run: 20, Failures: 1, Errors: 0, Skipped: 1, Time elapsed: 4.887 sec 
> <<< FAILURE! - in org.apache.hadoop.fs.TestLocalFileSystem
> testSetTimes(org.apache.hadoop.fs.TestLocalFileSystem)  Time elapsed: 0.084 
> sec  <<< FAILURE!
> java.lang.AssertionError: expected:<23456000> but was:<1479176144000>
>       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.TestLocalFileSystem.checkTimesStatus(TestLocalFileSystem.java:391)
>       at 
> org.apache.hadoop.fs.TestLocalFileSystem.testSetTimes(TestLocalFileSystem.java:414)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to