HBASE-12184 ServerShutdownHandler throws NPE
This commit is contained in:
parent
062adcc188
commit
8c3697b0d8
|
@ -188,7 +188,7 @@ public class ServerShutdownHandler extends EventHandler {
|
|||
mfs.prepareLogReplay(serverName, hris);
|
||||
} else {
|
||||
LOG.info("Splitting logs for " + serverName +
|
||||
" before assignment; region count=" + hris.size());
|
||||
" before assignment; region count=" + (hris == null ? 0 : hris.size()));
|
||||
this.services.getMasterFileSystem().splitLog(serverName);
|
||||
}
|
||||
am.getRegionStates().logSplit(serverName);
|
||||
|
|
Loading…
Reference in New Issue