You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Matt Foley (JIRA)" <ji...@apache.org> on 2011/06/18 00:34:49 UTC
[jira] [Commented] (HADOOP-7326) TestTrash.testTrashEmptier()
infinite loops if run on a home directory with stuff in .Trash
[ https://issues.apache.org/jira/browse/HADOOP-7326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13051367#comment-13051367 ]
Matt Foley commented on HADOOP-7326:
------------------------------------
FSMainOperationsBaseTest is a nice class that seems well-behaved for sharing between unit tests of multiple FileSystems, both Local and HDFS. It uses FileSystemTestHelper for setting up test data root directories.
> TestTrash.testTrashEmptier() infinite loops if run on a home directory with stuff in .Trash
> -------------------------------------------------------------------------------------------
>
> Key: HADOOP-7326
> URL: https://issues.apache.org/jira/browse/HADOOP-7326
> Project: Hadoop Common
> Issue Type: Bug
> Components: test
> Affects Versions: 0.22.0, 0.23.0
> Reporter: Matt Foley
> Assignee: Matt Foley
> Attachments: hadoop-7326-TestTrash-1.patch
>
>
> This bug was discovered while investigating HDFS-1967, intermittent failure of TestHDFSTrash, which calls TestTrash. If the user id running the test has a ~/.Trash directory that already has 4 or more files in it, a loop in TestTrash.testTrashEmptier() will never terminate, because it is waiting for the count of objects to increase from zero to exactly three (and it creates one object right away).
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira