Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-9185

TestFileCreation.testFsClose should clean up on exit.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1-win
    • 1-win
    • test
    • None
    • Reviewed

    Description

      TestFileCreation.testFsClose fails to shutdown the MiniDFSCluster on successful exit. Subsequent tests can fail with the following exception:

      java.io.IOException: Cannot remove data directory: d:\w\hc7\build\test\data\dfs\data
      at org.apache.hadoop.hdfs.MiniDFSCluster.<init>(MiniDFSCluster.java:266)
      at org.apache.hadoop.hdfs.MiniDFSCluster.<init>(MiniDFSCluster.java:125)
      at org.apache.hadoop.hdfs.TestFileCreation.testDeleteOnExit(TestFileCreation.java:261)

      This was seen with JDK7 since testcase execution order is randomized.

      Attachments

        1. HADOOP-9185.patch
          0.5 kB
          Arpit Agarwal

        Activity

          People

            arp Arpit Agarwal
            arp Arpit Agarwal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: