hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e...@apache.org
Subject hbase git commit: HBASE-13988 Add exception handler for lease thread (Liu Shaohui)
Date Tue, 07 Jul 2015 02:21:38 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1 c59cd2915 -> 3da505833


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/3da50583
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/3da50583
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/3da50583

Branch: refs/heads/branch-1
Commit: 3da5058337579d72ef046166ac0c979dda5eb74b
Parents: c59cd29
Author: Enis Soztutar <enis@apache.org>
Authored: Mon Jul 6 19:14:54 2015 -0700
Committer: Enis Soztutar <enis@apache.org>
Committed: Mon Jul 6 19:18:18 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/3da50583/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 54bcc45..04c443f 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
@@ -1713,8 +1713,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) {


Mime
View raw message