Return-Path: Delivered-To: apmail-lucene-hadoop-dev-archive@locus.apache.org Received: (qmail 74160 invoked from network); 30 Nov 2006 07:39:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Nov 2006 07:39:21 -0000 Received: (qmail 51357 invoked by uid 500); 30 Nov 2006 07:39:30 -0000 Delivered-To: apmail-lucene-hadoop-dev-archive@lucene.apache.org Received: (qmail 51124 invoked by uid 500); 30 Nov 2006 07:39:29 -0000 Mailing-List: contact hadoop-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hadoop-dev@lucene.apache.org Delivered-To: mailing list hadoop-dev@lucene.apache.org Received: (qmail 51115 invoked by uid 99); 30 Nov 2006 07:39:29 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Nov 2006 23:39:29 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Nov 2006 23:39:02 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3FFCD7142F7 for ; Wed, 29 Nov 2006 23:38:22 -0800 (PST) Message-ID: <27094389.1164872302259.JavaMail.jira@brutus> Date: Wed, 29 Nov 2006 23:38:22 -0800 (PST) From: "eric baldeschwieler (JIRA)" To: hadoop-dev@lucene.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. In-Reply-To: <28981014.1164801562659.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ 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