HBASE-7046 Fix resource leak in TestHLogSplit#testOldRecoveredEditsFileSidelined (Himanshu)
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1407363 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5497b3c155
commit
f317ef5b57
|
@ -202,7 +202,7 @@ public class TestHLogSplit {
|
||||||
Path p = HLogSplitter.getRegionSplitEditsPath(fs, entry, hbaseDir, true);
|
Path p = HLogSplitter.getRegionSplitEditsPath(fs, entry, hbaseDir, true);
|
||||||
String parentOfParent = p.getParent().getParent().getName();
|
String parentOfParent = p.getParent().getParent().getName();
|
||||||
assertEquals(parentOfParent, HRegionInfo.FIRST_META_REGIONINFO.getEncodedName());
|
assertEquals(parentOfParent, HRegionInfo.FIRST_META_REGIONINFO.getEncodedName());
|
||||||
HLogFactory.createWriter(fs, p, conf);
|
HLogFactory.createWriter(fs, p, conf).close();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(expected = OrphanHLogAfterSplitException.class)
|
@Test(expected = OrphanHLogAfterSplitException.class)
|
||||||
|
|
Loading…
Reference in New Issue