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 b069c10af4
commit 9e0ca78439

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();
}