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

Bharat Viswanadham commented on HDFS-13631:
-------------------------------------------

[~elgoiri]

The issue is because of using same dir by both minidfs clusters.

 

To use miniDFScluster created in class, it makes test code to be updated. As 
now in the test case we assume we have one datanode, so the file will be 
created on that datanode, and it made simple for the test to check numofblocks. 
(I think this is done to make test look simpler)

To use cluster created by class(which creates 2 datanodes) we need to update 
test case.

> 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
>
>
> [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: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to