Eli Collins created HDFS-3682: --------------------------------- Summary: MiniDFSCluster#init should provide more info when it fails Key: HDFS-3682 URL: https://issues.apache.org/jira/browse/HDFS-3682 Project: Hadoop HDFS Issue Type: Improvement Components: test Affects Versions: 2.0.0-alpha Reporter: Eli Collins Priority: Minor
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. {noformat} 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 {noformat} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira