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

MiniDFSCluster#init should provide more info when it fails

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.0-alpha
    • 2.0.3-alpha
    • test
    • 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

            tlipcon Todd Lipcon
            eli Eli Collins
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: