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

Chris Nauroth updated HDFS-6235:
--------------------------------

    Attachment: HDFS-6235.1.patch

The easiest thing to do here is simply to make sure that each test in the suite 
uses a unique storage directory.  That way, there is no chance of collision on 
locked files between multiple tests in the suite.  At the end of the test 
suite, all of these file handles will get released automatically during process 
exit.  I'm attaching a patch that changes the storage directory names to match 
the names of the individual tests.

> TestFileJournalManager can fail on Windows due to file locking if tests run 
> out of order.
> -----------------------------------------------------------------------------------------
>
>                 Key: HDFS-6235
>                 URL: https://issues.apache.org/jira/browse/HDFS-6235
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: namenode, test
>    Affects Versions: 3.0.0, 2.4.0
>            Reporter: Chris Nauroth
>            Assignee: Chris Nauroth
>         Attachments: HDFS-6235.1.patch
>
>
> {{TestFileJournalManager}} has multiple tests that reuse the same storage 
> directory: /filejournaltest2.  The last test in the suite intentionally 
> leaves a file open to test behavior of an unclosed edit log.  On some 
> environments though, tests within a suite execute out of order.  In this 
> case, a lock is still held on /filejournaltest2, and subsequent tests fail 
> trying to delete the directory.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to