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

Anbang Hu edited comment on HDFS-13631 at 5/31/18 5:42 AM:
-----------------------------------------------------------

Randomization of the basedir should happen in @Before function as in  
[^HDFS-13631.005.patch].

 [^HDFS-13631.004.patch] fails {{testDataNodeGetReconfigurationStatus}}, 
because {{testDataNodeGetReconfigurationStatus}} calls {{restartCluster}} again 
in the test:
{code:java}
  @Test(timeout = 30000)
  public void testDataNodeGetReconfigurationStatus() throws IOException,
      InterruptedException, TimeoutException {
    testDataNodeGetReconfigurationStatus(true);
    restartCluster();
    testDataNodeGetReconfigurationStatus(false);
  }
{code}



was (Author: huanbang1993):
Randomization of the basedir should happen in @Before function as in  
[^HDFS-13631.005.patch].

> TestDFSAdmin#testCheckNumOfBlocksInReportCommand should use a separate 
> MiniDFSCluster path
> ------------------------------------------------------------------------------------------
>
>                 Key: HDFS-13631
>                 URL: https://issues.apache.org/jira/browse/HDFS-13631
>             Project: Hadoop HDFS
>          Issue Type: Test
>            Reporter: Anbang Hu
>            Assignee: Anbang Hu
>            Priority: Minor
>              Labels: Windows
>         Attachments: HDFS-13631.000.patch, HDFS-13631.001.patch, 
> HDFS-13631.002.patch, HDFS-13631.003.patch, HDFS-13631.004.patch, 
> HDFS-13631.005.patch
>
>
> [TestDFSAdmin#testCheckNumOfBlocksInReportCommand|https://builds.apache.org/job/hadoop-trunk-win/479/testReport/org.apache.hadoop.hdfs.tools/TestDFSAdmin/testCheckNumOfBlocksInReportCommand/]
>  fails with error message:
> {color:#d04437}Could not fully delete 
> F:\short\hadoop-trunk-win\s\hadoop-hdfs-project\hadoop-hdfs\target\test\data\3\dfs\name-0-1{color}
> because testCheckNumOfBlocksInReportCommand is starting a new MiniDFSCluster 
> with the same base path as the one in @Before



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to