Check hris against null in ServerShutdownHandler.process()

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1153027 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Zhihong Yu 2011-08-02 04:54:37 +00:00
parent 8920ca766d
commit 488537b281
1 changed files with 7 additions and 5 deletions

View File

@ -220,6 +220,7 @@ public class ServerShutdownHandler extends EventHandler {
" regions(s) that are already in transition)");
// Iterate regions that were on this server and assign them
if (hris != null) {
for (Map.Entry<HRegionInfo, Result> e: hris.entrySet()) {
if (processDeadRegion(e.getKey(), e.getValue(),
this.services.getAssignmentManager(),
@ -227,6 +228,7 @@ public class ServerShutdownHandler extends EventHandler {
this.services.getAssignmentManager().assign(e.getKey(), true);
}
}
}
this.deadServers.finish(serverName);
LOG.info("Finished processing of shutdown of " + serverName);
}