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

Jason Lowe updated HADOOP-8110:
-------------------------------

    Status: Open  (was: Patch Available)

On second thought, we should be able to eliminate the race and make this more 
robust by preventing the rename from succeeding if the destination name exists. 
 If we collide during the checkpoint rename, we can simply retry with an 
attempt suffix to search for a unique name.
                
> TestViewFsTrash occasionally fails
> ----------------------------------
>
>                 Key: HADOOP-8110
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8110
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 0.23.3, 0.24.0
>            Reporter: Tsz Wo (Nicholas), SZE
>            Assignee: Jason Lowe
>         Attachments: HADOOP-8110.patch
>
>
> {noformat}
> junit.framework.AssertionFailedError: -expunge failed expected:<0> but was:<1>
>       at junit.framework.Assert.fail(Assert.java:47)
>       at junit.framework.Assert.failNotEquals(Assert.java:283)
>       at junit.framework.Assert.assertEquals(Assert.java:64)
>       at junit.framework.Assert.assertEquals(Assert.java:195)
>       at org.apache.hadoop.fs.TestTrash.trashShell(TestTrash.java:322)
>       at 
> org.apache.hadoop.fs.viewfs.TestViewFsTrash.testTrash(TestViewFsTrash.java:73)
>       ...
> {noformat}
> There are quite a few TestViewFsTrash failures recently.  E.g. [build #624 
> for 
> trunk|https://builds.apache.org/job/PreCommit-HADOOP-Build/624//testReport/org.apache.hadoop.fs.viewfs/TestViewFsTrash/testTrash/]
>  and [build #2 for 
> 0.23-PB|https://builds.apache.org/view/G-L/view/Hadoop/job/Hadoop-Common-0.23-PB-Build/2/testReport/junit/org.apache.hadoop.fs.viewfs/TestViewFsTrash/testTrash/].

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to