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 c220635c78
commit 7acb061e63
1 changed files with 2 additions and 2 deletions

View File

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