HBASE-10563 Set name for FlushHandler thread (Himanshu Vashishtha)
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1569370 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e8e5a7a881
commit
8c24e585e1
|
@ -238,6 +238,11 @@ class MemStoreFlusher implements FlushRequester {
|
|||
}
|
||||
|
||||
private class FlushHandler extends HasThread {
|
||||
|
||||
private FlushHandler(String name) {
|
||||
super(name);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
while (!server.isStopped()) {
|
||||
|
@ -381,7 +386,7 @@ class MemStoreFlusher implements FlushRequester {
|
|||
ThreadFactory flusherThreadFactory = Threads.newDaemonThreadFactory(
|
||||
server.getServerName().toShortString() + "-MemStoreFlusher", eh);
|
||||
for (int i = 0; i < flushHandlers.length; i++) {
|
||||
flushHandlers[i] = new FlushHandler();
|
||||
flushHandlers[i] = new FlushHandler("MemStoreFlusher." + i);
|
||||
flusherThreadFactory.newThread(flushHandlers[i]);
|
||||
flushHandlers[i].start();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue