Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-9928

TestHRegion should clean up test-data directory upon completion

    XMLWordPrintableJSON

Details

    • Test
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.98.0, 0.99.0
    • None
    • None
    • Reviewed

    Description

      TestHRegion leaves some files behind in hbase-server/target/test-data directory after tests complete.
      e.g. at the end of testRegionInfoFileCreation:

          // Verify that the .regioninfo file is still there
          assertTrue(HRegionFileSystem.REGION_INFO_FILE + " should be present in the region dir",
              fs.exists(new Path(regionDir, HRegionFileSystem.REGION_INFO_FILE)));
      

      test-data directory should be cleaned upon completion.

      I noticed this when looping TestHRegion in order to reproduce test failure.

      Attachments

        1. HBASE-9928.patch
          0.6 kB
          Gustavo Anatoly

        Activity

          People

            gustavoanatoly Gustavo Anatoly
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: