HBASE-21740 Fix NPE while shutting down RS

This commit is contained in:
lujie 2019-02-18 02:55:13 -08:00 committed by Xu Cang
parent 98c6ab68c1
commit f5ef0442b0
No known key found for this signature in database
GPG Key ID: 8E6C8FEDCA866394
1 changed files with 3 additions and 1 deletions

View File

@ -1946,7 +1946,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);