You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "eric baldeschwieler (JIRA)" <ji...@apache.org> on 2006/11/30 08:38:22 UTC

[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.

    [ 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