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

This commit is contained in:
Enis Soztutar 2015-07-06 19:14:54 -07:00
parent c59cd29153
commit 3da5058337
1 changed files with 2 additions and 2 deletions

View File

@ -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) {