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

Xiao Liang commented on HDFS-13588:
-----------------------------------

For 1, according to the description of 
org.apache.hadoop.fs.FileUtil#setWritable, File#setWritable does not work as 
expected on Windows, but it's used and failed in TestFsDatasetImpl, this fix is 
to replace File#setWritable with org.apache.hadoop.fs.FileUtil#setWritable and 
make it pass on Windows.

For 2, similar to other test case failures on Windows using MiniDFSCluster that 
use a fixed path for different test cases, this fix is to used a randomized 
path for base dir of MiniDFSCluster(introduced in HDFS-13408) to avoid the 
failure due to conflict between test cases.

> Fix TestFsDatasetImpl test failures on Windows
> ----------------------------------------------
>
>                 Key: HDFS-13588
>                 URL: https://issues.apache.org/jira/browse/HDFS-13588
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Xiao Liang
>            Assignee: Xiao Liang
>            Priority: Major
>              Labels: windows
>         Attachments: HDFS-13588-branch-2.000.patch, HDFS-13588.000.patch
>
>
> Some test cases of TestFsDatasetImpl failed on Windows due to:
>  # using File#setWritable interface;
>  # test directory conflict between test cases (details in HDFS-13408);
>  



--
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