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:15:07 GMT
Repository: hbase
Updated Branches:
  refs/heads/master c220635c7 -> 7acb061e6


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

Branch: refs/heads/master
Commit: 7acb061e63614ad957da654f920f54ac7a02edd6
Parents: c220635
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:14:54 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/7acb061e/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 43c2836..7666057 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
@@ -1717,8 +1717,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