HBASE-925 HRS NPE on way out if no master to connect to

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@704597 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2008-10-14 18:26:57 +00:00
parent 031c18faff
commit 767f6057ff
2 changed files with 5 additions and 2 deletions

View File

@ -23,6 +23,7 @@ Release 0.19.0 - Unreleased
HBASE-918 Region balancing during startup makes cluster unstable
HBASE-921 region close and open processed out of order; makes for
disagreement between master and regionserver on region state
HBASE-925 HRS NPE on way out if no master to connect to
IMPROVEMENTS
HBASE-901 Add a limit to key length, check key and value length on client side

View File

@ -446,8 +446,10 @@ public class HRegionServer implements HConstants, HRegionInterface, Runnable {
if (this.fsOk) {
// Only try to clean up if the file system is available
try {
this.log.close();
LOG.info("On abort, closed hlog");
if (this.log != null) {
this.log.close();
LOG.info("On abort, closed hlog");
}
} catch (IOException e) {
LOG.error("Unable to close log in abort",
RemoteExceptionHandler.checkIOException(e));