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

Hudson commented on HDFS-5093:
------------------------------

SUCCESS: Integrated in Hadoop-Yarn-trunk #303 (See 
[https://builds.apache.org/job/Hadoop-Yarn-trunk/303/])
HDFS-5093. TestGlobPaths should re-use the MiniDFSCluster to avoid failure on 
Windows. Contributed by Chuan Liu. (cnauroth: 
http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1514366)
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
* 
/hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/fs/TestGlobPaths.java

                
> TestGlobPaths should re-use the MiniDFSCluster to avoid failure on Windows
> --------------------------------------------------------------------------
>
>                 Key: HDFS-5093
>                 URL: https://issues.apache.org/jira/browse/HDFS-5093
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 3.0.0, 2.3.0
>            Reporter: Chuan Liu
>            Assignee: Chuan Liu
>            Priority: Minor
>             Fix For: 3.0.0, 2.3.0
>
>         Attachments: HDFS-5093.1.patch, HDFS-5093.patch
>
>
> Some test cases in TestGlobPaths fail on Windows because they try to create a 
> new MiniDFSCluster though there is already one created at {{setUp()}}. This 
> leads to failure on Windows because the new cluster will try to clean the old 
> name node file that was opened by the existing cluster -- on Windows, the 
> process or thread cannot delete the file opened in normal Java APIs by 
> another process or thread.
> An example failure run looks like the following.
> {noformat}
> testGlobWithSymlinksOnFS(org.apache.hadoop.fs.TestGlobPaths)  Time elapsed: 
> 47 sec  <<< ERROR!
> java.io.IOException: Could not fully delete 
> E:\tr\hadoop-hdfs-project\hadoop-hdfs\target\test\data\dfs\name1
>       at 
> org.apache.hadoop.hdfs.MiniDFSCluster.createNameNodesAndSetConf(MiniDFSCluster.java:759)
>       at 
> org.apache.hadoop.hdfs.MiniDFSCluster.initMiniDFSCluster(MiniDFSCluster.java:644)
>       at org.apache.hadoop.hdfs.MiniDFSCluster.<init>(MiniDFSCluster.java:334)
>       at 
> org.apache.hadoop.hdfs.MiniDFSCluster$Builder.build(MiniDFSCluster.java:316)
>       at 
> org.apache.hadoop.fs.TestGlobPaths.testOnFileSystem(TestGlobPaths.java:805)
>       at 
> org.apache.hadoop.fs.TestGlobPaths.testGlobWithSymlinksOnFS(TestGlobPaths.java:889)
> ...
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to