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:
Zhihong Yu 2012-11-09 05:21:52 +00:00
parent 5497b3c155
commit f317ef5b57
1 changed files with 1 additions and 1 deletions

View File

@ -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)