HBASE-12336 RegionServer failed to shutdown for NodeFailoverWorker thread (Liu Shaohui)

This commit is contained in:
stack 2014-10-29 22:03:26 -07:00
parent 5062edebcf
commit d170088d98

View File

@ -152,6 +152,7 @@ public class ReplicationSourceManager implements ReplicationListener {
new LinkedBlockingQueue<Runnable>());
ThreadFactoryBuilder tfb = new ThreadFactoryBuilder();
tfb.setNameFormat("ReplicationExecutor-%d");
tfb.setDaemon(true);
this.executor.setThreadFactory(tfb.build());
this.rand = new Random();
}