Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-3682

MiniDFSCluster#init should provide more info when it fails

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-alpha
    • Fix Version/s: 2.0.3-alpha
    • Component/s: test
    • Labels:
    • Hadoop Flags:
      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
      

        Attachments

        1. hdfs-3682.txt
          3 kB
          Todd Lipcon

          Activity

            People

            • Assignee:
              tlipcon Todd Lipcon
              Reporter:
              eli Eli Collins

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment