HBASE-1010 IOE on regionserver shutdown because hadn't opened an HLog

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@776897 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2009-05-20 23:32:46 +00:00
parent afe5e4077e
commit 2c502c24fc
2 changed files with 4 additions and 1 deletions

View File

@ -145,6 +145,7 @@ Release 0.20.0 - Unreleased
waiting for ever
HBASE-1441 NPE in ProcessRegionStatusChange#getMetaRegion
HBASE-1162 CME in Master in RegionManager.applyActions
HBASE-1010 IOE on regionserver shutdown because hadn't opened an HLog
IMPROVEMENTS
HBASE-1089 Add count of regions on filesystem to master UI; add percentage

View File

@ -644,7 +644,9 @@ public class HRegionServer implements HConstants, HRegionInterface,
} else {
ArrayList<HRegion> closedRegions = closeAllRegions();
try {
hlog.closeAndDelete();
if (this.hlog != null) {
hlog.closeAndDelete();
}
} catch (Throwable e) {
LOG.error("Close and delete failed",
RemoteExceptionHandler.checkThrowable(e));