HBASE-14109 NPE if we don't load fully before we are shutdown

This commit is contained in:
stack 2015-07-17 06:27:06 -07:00
parent d4a04d6216
commit d887e4cf1a
2 changed files with 4 additions and 2 deletions

View File

@ -479,7 +479,7 @@ public class ProcedureExecutor<TEnvironment> {
}
// Initialize procedures timeout handler (this is the +1 thread)
threads[numThreads] = new Thread("ProcedureExecutorTimeoutThread") {
threads[numThreads] = new Thread("ProcedureExecutorTimeout") {
@Override
public void run() {
timeoutLoop();

View File

@ -909,7 +909,9 @@ public class HRegionServer extends HasThread implements
}
// Start the Quota Manager
rsQuotaManager.start(getRpcServer().getScheduler());
if (this.rsQuotaManager != null) {
rsQuotaManager.start(getRpcServer().getScheduler());
}
// We registered with the Master. Go into run mode.
long lastMsg = System.currentTimeMillis();