HBASE-21740 Fix NPE while shutting down RS

This commit is contained in:
lujie 2019-02-17 20:02:55 +08:00 committed by Xu Cang
parent 40e1d9174e
commit 7be71c0f55
No known key found for this signature in database
GPG Key ID: 8E6C8FEDCA866394
1 changed files with 3 additions and 1 deletions

View File

@ -1976,7 +1976,9 @@ public class HRegionServer extends HasThread implements
Threads.setDaemonThreadRunning(this.walRoller.getThread(), getName() + ".logRoller",
uncaughtExceptionHandler);
this.cacheFlusher.start(uncaughtExceptionHandler);
if (this.cacheFlusher != null) {
this.cacheFlusher.start(uncaughtExceptionHandler);
}
Threads.setDaemonThreadRunning(this.procedureResultReporter,
getName() + ".procedureResultReporter", uncaughtExceptionHandler);