using node settings to get the node name for thread names
This commit is contained in:
parent
0f47518752
commit
0a459f7ceb
|
@ -215,7 +215,7 @@ public class ThreadPool extends AbstractComponent {
|
|||
settings = ImmutableSettings.Builder.EMPTY_SETTINGS;
|
||||
}
|
||||
String type = settings.get("type", defaultType);
|
||||
ThreadFactory threadFactory = EsExecutors.daemonThreadFactory(settings, "[" + name + "]");
|
||||
ThreadFactory threadFactory = EsExecutors.daemonThreadFactory(this.settings, "[" + name + "]");
|
||||
if ("same".equals(type)) {
|
||||
logger.debug("creating thread_pool [{}], type [{}]", name, type);
|
||||
return new ExecutorHolder(MoreExecutors.sameThreadExecutor(), new Info(name, type));
|
||||
|
|
Loading…
Reference in New Issue