HBASE-13988 Add exception handler for lease thread (Liu Shaohui)
This commit is contained in:
parent
c59cd29153
commit
3da5058337
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue