hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "eric baldeschwieler (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-761) Unit tests should cleanup created files in /tmp. It causes tests to fail if more than one users run tests on same machine.
Date Thu, 30 Nov 2006 07:38:22 GMT
    [ http://issues.apache.org/jira/browse/HADOOP-761?page=comments#action_12454548 ] 
            
eric baldeschwieler commented on HADOOP-761:
--------------------------------------------

Using /tmp is simply not a good idea.  It leaves you vulnerable to various of system configuration
differences, of which there are millions out there.  We should create temp files in the test's
working directory. 

> Unit tests should cleanup created files in /tmp. It causes tests to fail if more than
one users run tests on same machine.
> --------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-761
>                 URL: http://issues.apache.org/jira/browse/HADOOP-761
>             Project: Hadoop
>          Issue Type: Bug
>          Components: test
>            Reporter: Sanjay Dahiya
>            Priority: Minor
>
> TestMiniMRLocalFS  test cases creates /tmp/wc/input/, which is not cleaned up, any other
user running test on same machine simultaneously or later will see test failures. 
> It should either use a temp directory in the build/test or use java's File.createTempFile
method for temporary data and then clean it up. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message