Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.0.0-alpha
-
Reviewed
Description
I've seen the occasional test failure due to the MiniDFSCluster init failing due to "java.io.IOException: Cannot remove data directory" for the target/test/data/dfs/data directory. We should improve the error handling here so we can better understand the failure, eg perhaps one of the tests that chmods a directory fails and causes this failure.
org.apache.hadoop.hdfs.MiniDFSCluster.initMiniDFSCluster(MiniDFSCluster.java:596) at org.apache.hadoop.hdfs.MiniDFSCluster.<init>(MiniDFSCluster.java:297) at org.apache.hadoop.hdfs.MiniDFSCluster.<init>(MiniDFSCluster.java:116) at org.apache.hadoop.hdfs.MiniDFSCluster$Builder.build(MiniDFSCluster.java:279) at org.apache.hadoop.hdfs.security.TestDelegationToken.setUp(TestDelegationToken.java:77