hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Colin Patrick McCabe (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HADOOP-8766) FileContextMainOperationsBaseTest should randomize the root dir
Date Wed, 05 Sep 2012 20:43:07 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-8766?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Colin Patrick McCabe updated HADOOP-8766:
-----------------------------------------

    Attachment: HADOOP-8766.001.patch
    
> 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
>              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

Mime
View raw message