You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by xu...@apache.org on 2019/02/18 10:54:35 UTC
[hbase] branch branch-1 updated: HBASE-21740 Fix NPE while shutting
down RS
This is an automated email from the ASF dual-hosted git repository.
xucang pushed a commit to branch branch-1
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-1 by this push:
new 322ea54 HBASE-21740 Fix NPE while shutting down RS
322ea54 is described below
commit 322ea5456f333700bd05630347f504f94ce1fbf3
Author: lujie <lu...@ict.ac.cn>
AuthorDate: Mon Feb 18 02:53:19 2019 -0800
HBASE-21740 Fix NPE while shutting down RS
---
.../main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
index 258f68e..78dc66d 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
@@ -1844,7 +1844,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);
+ }
if (this.compactionChecker != null) choreService.scheduleChore(compactionChecker);
if (this.periodicFlusher != null) choreService.scheduleChore(periodicFlusher);