From 7acb061e63614ad957da654f920f54ac7a02edd6 Mon Sep 17 00:00:00 2001 From: Enis Soztutar Date: Mon, 6 Jul 2015 19:14:54 -0700 Subject: [PATCH] HBASE-13988 Add exception handler for lease thread (Liu Shaohui) --- .../org/apache/hadoop/hbase/regionserver/HRegionServer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 43c28366958..76660578b09 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) {