Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 96101 invoked from network); 26 Mar 2010 22:00:53 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 26 Mar 2010 22:00:53 -0000 Received: (qmail 3932 invoked by uid 500); 26 Mar 2010 22:00:51 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 3856 invoked by uid 500); 26 Mar 2010 22:00:51 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 3724 invoked by uid 99); 26 Mar 2010 22:00:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Mar 2010 22:00:51 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Mar 2010 22:00:48 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4B71C234C4FB for ; Fri, 26 Mar 2010 22:00:27 +0000 (UTC) Message-ID: <234584945.520131269640827308.JavaMail.jira@brutus.apache.org> Date: Fri, 26 Mar 2010 22:00:27 +0000 (UTC) From: "Robert Muir (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Resolved: (LUCENE-2349) Tests should use unique temporary directories In-Reply-To: <1161967386.504391269588387272.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-2349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Robert Muir resolved LUCENE-2349. --------------------------------- Resolution: Duplicate This is fixed via LUCENE-1709 > Tests should use unique temporary directories > --------------------------------------------- > > Key: LUCENE-2349 > URL: https://issues.apache.org/jira/browse/LUCENE-2349 > Project: Lucene - Java > Issue Type: Test > Components: Build > Affects Versions: 3.1 > Reporter: Robert Muir > > We cannot safely use parallel tests (LUCENE-1709) because some test classes try to use temporary directories with the same name. > So if these two happen to run at the same time, they conflict. > For example TestIndexReader has code like this: > {code} > File dirFile = new File(TEMP_DIR, "testIndex"); > {code} > But TestCompoundFile has similar code: > {code} > File file = new File(TEMP_DIR, "testIndex"); > {code} > If both these classes run at the same time, there will be problems. > If we want to use parallel tests safely, we have to fix this use of the static TEMP_DIR which does not include any unique name of the test. > Ideally we can do this without changing a lot of test code, especially backwards. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org