Details
-
Test
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Reviewed
Description
TestHRegion has over 100 tests.
The following is from one subtest:
public void testCompactionAffectedByScanners() throws Exception { byte[] family = Bytes.toBytes("family"); this.region = initHRegion(tableName, method, CONF, family);
this.region is not closed at the end of the subtest.
testToShowNPEOnRegionScannerReseek is another example.
Every subtest should use the following construct toward the end:
} finally { HBaseTestingUtility.closeRegionAndWAL(this.region);
Attachments
Attachments
Issue Links
- relates to
-
HBASE-21173 Remove the duplicate HRegion#close in TestHRegion
- Resolved
- links to