hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chen He (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HADOOP-13021) Hadoop swift driver unit test should use unique directory for each run
Date Wed, 13 Apr 2016 06:59:25 GMT

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

Chen He updated HADOOP-13021:
    Labels: unit-test  (was: )

> Hadoop swift driver unit test should use unique directory for each run
> ----------------------------------------------------------------------
>                 Key: HADOOP-13021
>                 URL: https://issues.apache.org/jira/browse/HADOOP-13021
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs/swift
>    Affects Versions: 2.7.2
>            Reporter: Chen He
>            Assignee: Chen He
>              Labels: unit-test
> Since all "unit test" in swift package are actually functionality test, it requires server's
information in the core-site.xml file. However, multiple unit test runs on difference machines
using the same core-site.xml file will result in some unit tests failure. For example:
> In TestSwiftFileSystemBasicOps.java
> public void testMkDir() throws Throwable {
>     Path path = new Path("/test/MkDir");
>     fs.mkdirs(path);
>     //success then -so try a recursive operation
>     fs.delete(path, true);
>   }
> It is possible that machine A and B are running "mvn clean install" using same core-site.xml
file. However, machine A run testMkDir() first and delete the dir, but machine B just tried
to run fs.delete(path,true). It will report failure. This is just an example. There are many
similar cases in the unit test sets. I would propose we use a unique dir for each unit test
run instead of using "Path path = new Path("/test/MkDir")" for all concurrent runs

This message was sent by Atlassian JIRA

View raw message