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:28:23 GMT
Repository: hbase
Updated Branches:
  refs/heads/0.98 deba1d0a1 -> 9894497e7


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

Conflicts:
	hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java


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

Branch: refs/heads/0.98
Commit: 9894497e7158905b3a8091e6ec8454e699be3e72
Parents: deba1d0
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:28:08 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/9894497e/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 89c86a9..1608f12 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
@@ -1728,8 +1728,8 @@ public class HRegionServer implements ClientProtos.ClientService.BlockingInterfa
 
     // Leases is not a Thread. Internally it runs a daemon thread. If it gets
     // an unhandled exception, it will just exit.
-    this.leases.setName(n + ".leaseChecker");
-    this.leases.start();
+    Threads.setDaemonThreadRunning(this.leases.getThread(), n + ".leaseChecker",
+      uncaughtExceptionHandler);
 
     if (this.replicationSourceHandler == this.replicationSinkHandler &&
         this.replicationSourceHandler != null) {


Mime
View raw message