[ 
https://issues.apache.org/jira/browse/HADOOP-14170?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15925170#comment-15925170
 ] 

Hudson commented on HADOOP-14170:
---------------------------------

SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #11403 (See 
[https://builds.apache.org/job/Hadoop-trunk-Commit/11403/])
HADOOP-14170. FileSystemContractBaseTest is not cleaning up test (liuml07: rev 
fa67a96d7b0812a6557e40a6ef1eb16f19823e73)
* (edit) 
hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/FileSystemContractBaseTest.java
* (edit) 
hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/ITestS3AFileSystemContract.java
* (edit) 
hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestRawLocalFileSystemContract.java


> FileSystemContractBaseTest is not cleaning up test directory clearly
> --------------------------------------------------------------------
>
>                 Key: HADOOP-14170
>                 URL: https://issues.apache.org/jira/browse/HADOOP-14170
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>            Reporter: Mingliang Liu
>            Assignee: Mingliang Liu
>             Fix For: 2.9.0, 3.0.0-alpha3
>
>         Attachments: HADOOP-14170.000.patch, HADOOP-14170.001.patch, 
> HADOOP-14170.002.patch, HADOOP-14170.003.patch, HADOOP-14170.004.patch, 
> HADOOP-14170-branch-2.003.patch, HADOOP-14170-branch-2.004.patch
>
>
> In {{FileSystemContractBaseTest::tearDown()}} method, it cleans up the 
> {{path("/test")}} directory, which will be qualified as {{/test}} (against 
> root instead of working directory because it's absolute):
> {code}
>   @Override
>   protected void tearDown() throws Exception {
>     try {
>       if (fs != null) {
>         fs.delete(path("/test"), true);
>       }
>     } catch (IOException e) {
>       LOG.error("Error deleting /test: " + e, e);
>     }
>   }
> {code}
> But in the test, it uses {{path("test")}} sometimes, which will be made 
> qualified against the working directory (e.g. {{/user/bob/test}}).
> This makes some tests fail intermittently, e.g. 
> {{ITestS3AFileSystemContract}}. Also see the discussion in [HADOOP-13934].



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to