Repository: hbase
Updated Branches:
  refs/heads/branch-1.0 955d02a87 -> 9d860fa7e


HBASE-13988 Add exception handler for lease thread (Liu Shaohui)


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/9d860fa7
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/9d860fa7
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/9d860fa7

Branch: refs/heads/branch-1.0
Commit: 9d860fa7e3fb89b67ae46c73b4fdb91c47f6d4f3
Parents: 955d02a
Author: Enis Soztutar <e...@apache.org>
Authored: Mon Jul 6 19:14:54 2015 -0700
Committer: Enis Soztutar <e...@apache.org>
Committed: Mon Jul 6 19:22:33 2015 -0700

----------------------------------------------------------------------
 .../java/org/apache/hadoop/hbase/regionserver/HRegionServer.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/9d860fa7/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
----------------------------------------------------------------------
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 c654253..f702642 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
@@ -1643,8 +1643,8 @@ public class HRegionServer extends HasThread implements
 
     // Leases is not a Thread. Internally it runs a daemon thread. If it gets
     // an unhandled exception, it will just exit.
-    this.leases.setName(getName() + ".leaseChecker");
-    this.leases.start();
+    Threads.setDaemonThreadRunning(this.leases.getThread(), getName() + 
".leaseChecker",
+      uncaughtExceptionHandler);
 
     if (this.replicationSourceHandler == this.replicationSinkHandler &&
         this.replicationSourceHandler != null) {

Reply via email to