Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 318FAD843 for ; Wed, 5 Sep 2012 23:14:10 +0000 (UTC) Received: (qmail 69456 invoked by uid 500); 5 Sep 2012 23:14:09 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 69431 invoked by uid 500); 5 Sep 2012 23:14:09 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 69422 invoked by uid 99); 5 Sep 2012 23:14:09 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Sep 2012 23:14:09 +0000 Date: Thu, 6 Sep 2012 10:14:09 +1100 (NCT) From: "Aaron T. Myers (JIRA)" To: common-issues@hadoop.apache.org Message-ID: <128414882.41909.1346886849825.JavaMail.jiratomcat@arcas> In-Reply-To: <846896236.37555.1346824627417.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (HADOOP-8766) FileContextMainOperationsBaseTest should randomize the root dir MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HADOOP-8766?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13449247#comment-13449247 ] Aaron T. Myers commented on HADOOP-8766: ---------------------------------------- +1, the patch looks good to me. I'm going to commit this momentarily. > FileContextMainOperationsBaseTest should randomize the root dir > ---------------------------------------------------------------- > > Key: HADOOP-8766 > URL: https://issues.apache.org/jira/browse/HADOOP-8766 > Project: Hadoop Common > Issue Type: Bug > Components: test > Affects Versions: 2.0.0-alpha > Reporter: Eli Collins > Assignee: Colin Patrick McCabe > Labels: newbie > Attachments: HADOOP-8766.001.patch > > > FileContextMainOperationsBaseTest should randomize the name of the root directory it creates. It currently hardcodes LOCAL_FS_ROOT_URI to {{/tmp/test}}. > This causes the job to fail if it clashes with another jobs that also uses that path. Eg > {noformat} > org.apache.hadoop.fs.FileAlreadyExistsException: Parent path is not a directory: file:/tmp/test > at org.apache.hadoop.fs.RawLocalFileSystem.mkdirs(RawLocalFileSystem.java:362) > at org.apache.hadoop.fs.RawLocalFileSystem.mkdirs(RawLocalFileSystem.java:373) > at org.apache.hadoop.fs.FileSystem.primitiveMkdir(FileSystem.java:931) > at org.apache.hadoop.fs.DelegateToFileSystem.mkdir(DelegateToFileSystem.java:143) > at org.apache.hadoop.fs.FilterFs.mkdir(FilterFs.java:189) > at org.apache.hadoop.fs.FileContext$4.next(FileContext.java:706) > at org.apache.hadoop.fs.FileContext$4.next(FileContext.java:703) > at org.apache.hadoop.fs.FileContext$FSLinkResolver.resolve(FileContext.java:2333) > at org.apache.hadoop.fs.FileContext.mkdir(FileContext.java:703) > at org.apache.hadoop.fs.FileContextMainOperationsBaseTest.testWorkingDirectory(FileContextMainOperationsBaseTest.java:178) > {noformat} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira