mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-28 09:28:55 -04:00
Remove dangerous default executor from HandledTransportAction (#100162)
Today subclasses of `HandledTransportAction` can specify the executor on which they run, but the executor is optional and if omitted will use `DIRECT_EXECUTOR_SERVICE`, which means the action runs on a transport thread. This is a dangerous default behaviour because it makes it easy to add new transport actions which implicitly run on a network thread, which is very hard to pick up in reviews. This commit makes the executor explicit in all callers, and marks the dangerous methods for removal.
This commit is contained in:
parent
9f08c33cb0
commit
0a31ce64a9
182 changed files with 869 additions and 197 deletions
|
@ -17,6 +17,7 @@ import org.elasticsearch.action.support.ActionFilters;
|
||||||
import org.elasticsearch.action.support.HandledTransportAction;
|
import org.elasticsearch.action.support.HandledTransportAction;
|
||||||
import org.elasticsearch.action.update.UpdateResponse;
|
import org.elasticsearch.action.update.UpdateResponse;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.index.shard.ShardId;
|
import org.elasticsearch.index.shard.ShardId;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
import org.elasticsearch.transport.TransportService;
|
import org.elasticsearch.transport.TransportService;
|
||||||
|
@ -30,7 +31,7 @@ public class TransportNoopBulkAction extends HandledTransportAction<BulkRequest,
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public TransportNoopBulkAction(TransportService transportService, ActionFilters actionFilters) {
|
public TransportNoopBulkAction(TransportService transportService, ActionFilters actionFilters) {
|
||||||
super(NoopBulkAction.NAME, transportService, actionFilters, BulkRequest::new);
|
super(NoopBulkAction.NAME, transportService, actionFilters, BulkRequest::new, EsExecutors.DIRECT_EXECUTOR_SERVICE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -16,6 +16,7 @@ import org.elasticsearch.action.support.ActionFilters;
|
||||||
import org.elasticsearch.action.support.HandledTransportAction;
|
import org.elasticsearch.action.support.HandledTransportAction;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
import org.elasticsearch.common.io.stream.Writeable;
|
import org.elasticsearch.common.io.stream.Writeable;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.search.SearchHit;
|
import org.elasticsearch.search.SearchHit;
|
||||||
import org.elasticsearch.search.SearchHits;
|
import org.elasticsearch.search.SearchHits;
|
||||||
import org.elasticsearch.search.aggregations.InternalAggregations;
|
import org.elasticsearch.search.aggregations.InternalAggregations;
|
||||||
|
@ -30,7 +31,13 @@ import java.util.Collections;
|
||||||
public class TransportNoopSearchAction extends HandledTransportAction<SearchRequest, SearchResponse> {
|
public class TransportNoopSearchAction extends HandledTransportAction<SearchRequest, SearchResponse> {
|
||||||
@Inject
|
@Inject
|
||||||
public TransportNoopSearchAction(TransportService transportService, ActionFilters actionFilters) {
|
public TransportNoopSearchAction(TransportService transportService, ActionFilters actionFilters) {
|
||||||
super(NoopSearchAction.NAME, transportService, actionFilters, (Writeable.Reader<SearchRequest>) SearchRequest::new);
|
super(
|
||||||
|
NoopSearchAction.NAME,
|
||||||
|
transportService,
|
||||||
|
actionFilters,
|
||||||
|
(Writeable.Reader<SearchRequest>) SearchRequest::new,
|
||||||
|
EsExecutors.DIRECT_EXECUTOR_SERVICE
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -19,6 +19,7 @@ import org.elasticsearch.client.internal.node.NodeClient;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
import org.elasticsearch.common.io.stream.StreamInput;
|
import org.elasticsearch.common.io.stream.StreamInput;
|
||||||
import org.elasticsearch.common.io.stream.StreamOutput;
|
import org.elasticsearch.common.io.stream.StreamOutput;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.grok.GrokBuiltinPatterns;
|
import org.elasticsearch.grok.GrokBuiltinPatterns;
|
||||||
import org.elasticsearch.grok.PatternBank;
|
import org.elasticsearch.grok.PatternBank;
|
||||||
import org.elasticsearch.rest.BaseRestHandler;
|
import org.elasticsearch.rest.BaseRestHandler;
|
||||||
|
@ -139,7 +140,7 @@ public class GrokProcessorGetAction extends ActionType<GrokProcessorGetAction.Re
|
||||||
PatternBank legacyGrokPatterns,
|
PatternBank legacyGrokPatterns,
|
||||||
PatternBank ecsV1GrokPatterns
|
PatternBank ecsV1GrokPatterns
|
||||||
) {
|
) {
|
||||||
super(NAME, transportService, actionFilters, Request::new);
|
super(NAME, transportService, actionFilters, Request::new, EsExecutors.DIRECT_EXECUTOR_SERVICE);
|
||||||
this.legacyGrokPatterns = legacyGrokPatterns.bank();
|
this.legacyGrokPatterns = legacyGrokPatterns.bank();
|
||||||
this.sortedLegacyGrokPatterns = new TreeMap<>(this.legacyGrokPatterns);
|
this.sortedLegacyGrokPatterns = new TreeMap<>(this.legacyGrokPatterns);
|
||||||
this.ecsV1GrokPatterns = ecsV1GrokPatterns.bank();
|
this.ecsV1GrokPatterns = ecsV1GrokPatterns.bank();
|
||||||
|
|
|
@ -16,6 +16,7 @@ import org.elasticsearch.action.support.ActionFilters;
|
||||||
import org.elasticsearch.action.support.HandledTransportAction;
|
import org.elasticsearch.action.support.HandledTransportAction;
|
||||||
import org.elasticsearch.client.internal.node.NodeClient;
|
import org.elasticsearch.client.internal.node.NodeClient;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.script.ScriptService;
|
import org.elasticsearch.script.ScriptService;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
import org.elasticsearch.transport.TransportService;
|
import org.elasticsearch.transport.TransportService;
|
||||||
|
@ -44,7 +45,13 @@ public class TransportMultiSearchTemplateAction extends HandledTransportAction<M
|
||||||
NodeClient client,
|
NodeClient client,
|
||||||
UsageService usageService
|
UsageService usageService
|
||||||
) {
|
) {
|
||||||
super(MultiSearchTemplateAction.NAME, transportService, actionFilters, MultiSearchTemplateRequest::new);
|
super(
|
||||||
|
MultiSearchTemplateAction.NAME,
|
||||||
|
transportService,
|
||||||
|
actionFilters,
|
||||||
|
MultiSearchTemplateRequest::new,
|
||||||
|
EsExecutors.DIRECT_EXECUTOR_SERVICE
|
||||||
|
);
|
||||||
this.scriptService = scriptService;
|
this.scriptService = scriptService;
|
||||||
this.xContentRegistry = xContentRegistry;
|
this.xContentRegistry = xContentRegistry;
|
||||||
this.client = client;
|
this.client = client;
|
||||||
|
|
|
@ -15,6 +15,7 @@ import org.elasticsearch.action.support.HandledTransportAction;
|
||||||
import org.elasticsearch.client.internal.node.NodeClient;
|
import org.elasticsearch.client.internal.node.NodeClient;
|
||||||
import org.elasticsearch.common.bytes.BytesArray;
|
import org.elasticsearch.common.bytes.BytesArray;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.common.xcontent.LoggingDeprecationHandler;
|
import org.elasticsearch.common.xcontent.LoggingDeprecationHandler;
|
||||||
import org.elasticsearch.rest.action.search.RestSearchAction;
|
import org.elasticsearch.rest.action.search.RestSearchAction;
|
||||||
import org.elasticsearch.script.Script;
|
import org.elasticsearch.script.Script;
|
||||||
|
@ -54,7 +55,7 @@ public class TransportSearchTemplateAction extends HandledTransportAction<Search
|
||||||
NodeClient client,
|
NodeClient client,
|
||||||
UsageService usageService
|
UsageService usageService
|
||||||
) {
|
) {
|
||||||
super(SearchTemplateAction.NAME, transportService, actionFilters, SearchTemplateRequest::new);
|
super(SearchTemplateAction.NAME, transportService, actionFilters, SearchTemplateRequest::new, EsExecutors.DIRECT_EXECUTOR_SERVICE);
|
||||||
this.scriptService = scriptService;
|
this.scriptService = scriptService;
|
||||||
this.xContentRegistry = xContentRegistry;
|
this.xContentRegistry = xContentRegistry;
|
||||||
this.client = client;
|
this.client = client;
|
||||||
|
|
|
@ -20,6 +20,7 @@ import org.elasticsearch.common.inject.Inject;
|
||||||
import org.elasticsearch.common.io.stream.StreamInput;
|
import org.elasticsearch.common.io.stream.StreamInput;
|
||||||
import org.elasticsearch.common.io.stream.StreamOutput;
|
import org.elasticsearch.common.io.stream.StreamOutput;
|
||||||
import org.elasticsearch.common.io.stream.Writeable;
|
import org.elasticsearch.common.io.stream.Writeable;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.painless.PainlessScriptEngine;
|
import org.elasticsearch.painless.PainlessScriptEngine;
|
||||||
import org.elasticsearch.painless.lookup.PainlessLookup;
|
import org.elasticsearch.painless.lookup.PainlessLookup;
|
||||||
import org.elasticsearch.rest.BaseRestHandler;
|
import org.elasticsearch.rest.BaseRestHandler;
|
||||||
|
@ -142,7 +143,7 @@ public class PainlessContextAction extends ActionType<PainlessContextAction.Resp
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public TransportAction(TransportService transportService, ActionFilters actionFilters, PainlessScriptEngine painlessScriptEngine) {
|
public TransportAction(TransportService transportService, ActionFilters actionFilters, PainlessScriptEngine painlessScriptEngine) {
|
||||||
super(NAME, transportService, actionFilters, (Writeable.Reader<Request>) Request::new);
|
super(NAME, transportService, actionFilters, (Writeable.Reader<Request>) Request::new, EsExecutors.DIRECT_EXECUTOR_SERVICE);
|
||||||
this.painlessScriptEngine = painlessScriptEngine;
|
this.painlessScriptEngine = painlessScriptEngine;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,7 @@ import org.elasticsearch.client.internal.Client;
|
||||||
import org.elasticsearch.common.bytes.BytesArray;
|
import org.elasticsearch.common.bytes.BytesArray;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
import org.elasticsearch.common.util.Maps;
|
import org.elasticsearch.common.util.Maps;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.common.xcontent.LoggingDeprecationHandler;
|
import org.elasticsearch.common.xcontent.LoggingDeprecationHandler;
|
||||||
import org.elasticsearch.script.Script;
|
import org.elasticsearch.script.Script;
|
||||||
import org.elasticsearch.script.ScriptService;
|
import org.elasticsearch.script.ScriptService;
|
||||||
|
@ -69,7 +70,7 @@ public class TransportRankEvalAction extends HandledTransportAction<RankEvalRequ
|
||||||
ScriptService scriptService,
|
ScriptService scriptService,
|
||||||
NamedXContentRegistry namedXContentRegistry
|
NamedXContentRegistry namedXContentRegistry
|
||||||
) {
|
) {
|
||||||
super(RankEvalAction.NAME, transportService, actionFilters, RankEvalRequest::new);
|
super(RankEvalAction.NAME, transportService, actionFilters, RankEvalRequest::new, EsExecutors.DIRECT_EXECUTOR_SERVICE);
|
||||||
this.scriptService = scriptService;
|
this.scriptService = scriptService;
|
||||||
this.namedXContentRegistry = namedXContentRegistry;
|
this.namedXContentRegistry = namedXContentRegistry;
|
||||||
this.client = client;
|
this.client = client;
|
||||||
|
|
|
@ -15,6 +15,7 @@ import org.elasticsearch.client.internal.Client;
|
||||||
import org.elasticsearch.client.internal.ParentTaskAssigningClient;
|
import org.elasticsearch.client.internal.ParentTaskAssigningClient;
|
||||||
import org.elasticsearch.cluster.service.ClusterService;
|
import org.elasticsearch.cluster.service.ClusterService;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.index.reindex.BulkByScrollResponse;
|
import org.elasticsearch.index.reindex.BulkByScrollResponse;
|
||||||
import org.elasticsearch.index.reindex.BulkByScrollTask;
|
import org.elasticsearch.index.reindex.BulkByScrollTask;
|
||||||
import org.elasticsearch.index.reindex.DeleteByQueryAction;
|
import org.elasticsearch.index.reindex.DeleteByQueryAction;
|
||||||
|
@ -40,7 +41,7 @@ public class TransportDeleteByQueryAction extends HandledTransportAction<DeleteB
|
||||||
ScriptService scriptService,
|
ScriptService scriptService,
|
||||||
ClusterService clusterService
|
ClusterService clusterService
|
||||||
) {
|
) {
|
||||||
super(DeleteByQueryAction.NAME, transportService, actionFilters, DeleteByQueryRequest::new);
|
super(DeleteByQueryAction.NAME, transportService, actionFilters, DeleteByQueryRequest::new, EsExecutors.DIRECT_EXECUTOR_SERVICE);
|
||||||
this.threadPool = threadPool;
|
this.threadPool = threadPool;
|
||||||
this.client = client;
|
this.client = client;
|
||||||
this.scriptService = scriptService;
|
this.scriptService = scriptService;
|
||||||
|
|
|
@ -19,6 +19,7 @@ import org.elasticsearch.common.inject.Inject;
|
||||||
import org.elasticsearch.common.settings.Setting;
|
import org.elasticsearch.common.settings.Setting;
|
||||||
import org.elasticsearch.common.settings.Setting.Property;
|
import org.elasticsearch.common.settings.Setting.Property;
|
||||||
import org.elasticsearch.common.settings.Settings;
|
import org.elasticsearch.common.settings.Settings;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.index.reindex.BulkByScrollResponse;
|
import org.elasticsearch.index.reindex.BulkByScrollResponse;
|
||||||
import org.elasticsearch.index.reindex.BulkByScrollTask;
|
import org.elasticsearch.index.reindex.BulkByScrollTask;
|
||||||
import org.elasticsearch.index.reindex.ReindexAction;
|
import org.elasticsearch.index.reindex.ReindexAction;
|
||||||
|
@ -82,7 +83,7 @@ public class TransportReindexAction extends HandledTransportAction<ReindexReques
|
||||||
TransportService transportService,
|
TransportService transportService,
|
||||||
ReindexSslConfig sslConfig
|
ReindexSslConfig sslConfig
|
||||||
) {
|
) {
|
||||||
super(name, transportService, actionFilters, ReindexRequest::new);
|
super(name, transportService, actionFilters, ReindexRequest::new, EsExecutors.DIRECT_EXECUTOR_SERVICE);
|
||||||
this.client = client;
|
this.client = client;
|
||||||
this.reindexValidator = new ReindexValidator(settings, clusterService, indexNameExpressionResolver, autoCreateIndex);
|
this.reindexValidator = new ReindexValidator(settings, clusterService, indexNameExpressionResolver, autoCreateIndex);
|
||||||
this.reindexer = new Reindexer(clusterService, client, threadPool, scriptService, sslConfig);
|
this.reindexer = new Reindexer(clusterService, client, threadPool, scriptService, sslConfig);
|
||||||
|
|
|
@ -18,6 +18,7 @@ import org.elasticsearch.client.internal.ParentTaskAssigningClient;
|
||||||
import org.elasticsearch.cluster.ClusterState;
|
import org.elasticsearch.cluster.ClusterState;
|
||||||
import org.elasticsearch.cluster.service.ClusterService;
|
import org.elasticsearch.cluster.service.ClusterService;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.index.reindex.BulkByScrollResponse;
|
import org.elasticsearch.index.reindex.BulkByScrollResponse;
|
||||||
import org.elasticsearch.index.reindex.BulkByScrollTask;
|
import org.elasticsearch.index.reindex.BulkByScrollTask;
|
||||||
import org.elasticsearch.index.reindex.ScrollableHitSource;
|
import org.elasticsearch.index.reindex.ScrollableHitSource;
|
||||||
|
@ -53,7 +54,7 @@ public class TransportUpdateByQueryAction extends HandledTransportAction<UpdateB
|
||||||
ScriptService scriptService,
|
ScriptService scriptService,
|
||||||
ClusterService clusterService
|
ClusterService clusterService
|
||||||
) {
|
) {
|
||||||
super(UpdateByQueryAction.NAME, transportService, actionFilters, UpdateByQueryRequest::new);
|
super(UpdateByQueryAction.NAME, transportService, actionFilters, UpdateByQueryRequest::new, EsExecutors.DIRECT_EXECUTOR_SERVICE);
|
||||||
this.threadPool = threadPool;
|
this.threadPool = threadPool;
|
||||||
this.client = client;
|
this.client = client;
|
||||||
this.scriptService = scriptService;
|
this.scriptService = scriptService;
|
||||||
|
|
|
@ -16,6 +16,7 @@ import org.elasticsearch.cluster.ClusterState;
|
||||||
import org.elasticsearch.cluster.service.ClusterService;
|
import org.elasticsearch.cluster.service.ClusterService;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
import org.elasticsearch.common.settings.Settings;
|
import org.elasticsearch.common.settings.Settings;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.index.IndexVersion;
|
import org.elasticsearch.index.IndexVersion;
|
||||||
import org.elasticsearch.node.Node;
|
import org.elasticsearch.node.Node;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
|
@ -33,7 +34,7 @@ public class TransportMainAction extends HandledTransportAction<MainRequest, Mai
|
||||||
ActionFilters actionFilters,
|
ActionFilters actionFilters,
|
||||||
ClusterService clusterService
|
ClusterService clusterService
|
||||||
) {
|
) {
|
||||||
super(MainAction.NAME, transportService, actionFilters, MainRequest::new);
|
super(MainAction.NAME, transportService, actionFilters, MainRequest::new, EsExecutors.DIRECT_EXECUTOR_SERVICE);
|
||||||
this.nodeName = Node.NODE_NAME_SETTING.get(settings);
|
this.nodeName = Node.NODE_NAME_SETTING.get(settings);
|
||||||
this.clusterService = clusterService;
|
this.clusterService = clusterService;
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,6 +18,7 @@ import org.elasticsearch.action.support.ActionFilters;
|
||||||
import org.elasticsearch.action.support.HandledTransportAction;
|
import org.elasticsearch.action.support.HandledTransportAction;
|
||||||
import org.elasticsearch.action.support.PlainActionFuture;
|
import org.elasticsearch.action.support.PlainActionFuture;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.plugins.ActionPlugin;
|
import org.elasticsearch.plugins.ActionPlugin;
|
||||||
import org.elasticsearch.plugins.Plugin;
|
import org.elasticsearch.plugins.Plugin;
|
||||||
import org.elasticsearch.plugins.PluginsService;
|
import org.elasticsearch.plugins.PluginsService;
|
||||||
|
@ -185,7 +186,7 @@ public class ListTasksIT extends ESSingleNodeTestCase {
|
||||||
PluginsService pluginsService,
|
PluginsService pluginsService,
|
||||||
ThreadPool threadPool
|
ThreadPool threadPool
|
||||||
) {
|
) {
|
||||||
super(NAME, transportService, actionFilters, in -> new TestRequest());
|
super(NAME, transportService, actionFilters, in -> new TestRequest(), EsExecutors.DIRECT_EXECUTOR_SERVICE);
|
||||||
testPlugin = pluginsService.filterPlugins(TestPlugin.class).get(0);
|
testPlugin = pluginsService.filterPlugins(TestPlugin.class).get(0);
|
||||||
this.threadPool = threadPool;
|
this.threadPool = threadPool;
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,6 +20,7 @@ import org.elasticsearch.cluster.node.DiscoveryNode;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
import org.elasticsearch.common.io.stream.StreamInput;
|
import org.elasticsearch.common.io.stream.StreamInput;
|
||||||
import org.elasticsearch.common.io.stream.StreamOutput;
|
import org.elasticsearch.common.io.stream.StreamOutput;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
import org.elasticsearch.transport.TransportService;
|
import org.elasticsearch.transport.TransportService;
|
||||||
|
|
||||||
|
@ -129,7 +130,7 @@ public class MasterHistoryAction extends ActionType<MasterHistoryAction.Response
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public TransportAction(TransportService transportService, ActionFilters actionFilters, MasterHistoryService masterHistoryService) {
|
public TransportAction(TransportService transportService, ActionFilters actionFilters, MasterHistoryService masterHistoryService) {
|
||||||
super(MasterHistoryAction.NAME, transportService, actionFilters, MasterHistoryAction.Request::new);
|
super(MasterHistoryAction.NAME, transportService, actionFilters, Request::new, EsExecutors.DIRECT_EXECUTOR_SERVICE);
|
||||||
this.masterHistoryService = masterHistoryService;
|
this.masterHistoryService = masterHistoryService;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -76,7 +76,7 @@ public class TransportGetTaskAction extends HandledTransportAction<GetTaskReques
|
||||||
Client client,
|
Client client,
|
||||||
NamedXContentRegistry xContentRegistry
|
NamedXContentRegistry xContentRegistry
|
||||||
) {
|
) {
|
||||||
super(GetTaskAction.NAME, transportService, actionFilters, GetTaskRequest::new);
|
super(GetTaskAction.NAME, transportService, actionFilters, GetTaskRequest::new, EsExecutors.DIRECT_EXECUTOR_SERVICE);
|
||||||
this.threadPool = threadPool;
|
this.threadPool = threadPool;
|
||||||
this.clusterService = clusterService;
|
this.clusterService = clusterService;
|
||||||
this.transportService = transportService;
|
this.transportService = transportService;
|
||||||
|
|
|
@ -25,6 +25,7 @@ import org.elasticsearch.cluster.node.DiscoveryNode;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
import org.elasticsearch.common.io.stream.StreamInput;
|
import org.elasticsearch.common.io.stream.StreamInput;
|
||||||
import org.elasticsearch.common.io.stream.StreamOutput;
|
import org.elasticsearch.common.io.stream.StreamOutput;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.common.util.concurrent.ThreadContext;
|
import org.elasticsearch.common.util.concurrent.ThreadContext;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
import org.elasticsearch.transport.RemoteClusterServerInfo;
|
import org.elasticsearch.transport.RemoteClusterServerInfo;
|
||||||
|
@ -98,7 +99,7 @@ public class RemoteClusterNodesAction extends ActionType<RemoteClusterNodesActio
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public TransportAction(TransportService transportService, ActionFilters actionFilters) {
|
public TransportAction(TransportService transportService, ActionFilters actionFilters) {
|
||||||
super(RemoteClusterNodesAction.NAME, transportService, actionFilters, Request::new);
|
super(RemoteClusterNodesAction.NAME, transportService, actionFilters, Request::new, EsExecutors.DIRECT_EXECUTOR_SERVICE);
|
||||||
this.transportService = transportService;
|
this.transportService = transportService;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -14,6 +14,7 @@ import org.elasticsearch.action.support.ActionFilters;
|
||||||
import org.elasticsearch.action.support.HandledTransportAction;
|
import org.elasticsearch.action.support.HandledTransportAction;
|
||||||
import org.elasticsearch.cluster.node.DiscoveryNodeRole;
|
import org.elasticsearch.cluster.node.DiscoveryNodeRole;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
import org.elasticsearch.transport.RemoteClusterService;
|
import org.elasticsearch.transport.RemoteClusterService;
|
||||||
import org.elasticsearch.transport.TransportService;
|
import org.elasticsearch.transport.TransportService;
|
||||||
|
@ -30,7 +31,7 @@ public final class TransportRemoteInfoAction extends HandledTransportAction<Remo
|
||||||
ActionFilters actionFilters,
|
ActionFilters actionFilters,
|
||||||
SearchTransportService searchTransportService
|
SearchTransportService searchTransportService
|
||||||
) {
|
) {
|
||||||
super(RemoteInfoAction.NAME, transportService, actionFilters, RemoteInfoRequest::new);
|
super(RemoteInfoAction.NAME, transportService, actionFilters, RemoteInfoRequest::new, EsExecutors.DIRECT_EXECUTOR_SERVICE);
|
||||||
this.remoteClusterService = searchTransportService.getRemoteClusterService();
|
this.remoteClusterService = searchTransportService.getRemoteClusterService();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,7 @@ import org.elasticsearch.action.ActionListener;
|
||||||
import org.elasticsearch.action.support.ActionFilters;
|
import org.elasticsearch.action.support.ActionFilters;
|
||||||
import org.elasticsearch.action.support.HandledTransportAction;
|
import org.elasticsearch.action.support.HandledTransportAction;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.script.ScriptContextInfo;
|
import org.elasticsearch.script.ScriptContextInfo;
|
||||||
import org.elasticsearch.script.ScriptService;
|
import org.elasticsearch.script.ScriptService;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
|
@ -24,7 +25,13 @@ public class TransportGetScriptContextAction extends HandledTransportAction<GetS
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public TransportGetScriptContextAction(TransportService transportService, ActionFilters actionFilters, ScriptService scriptService) {
|
public TransportGetScriptContextAction(TransportService transportService, ActionFilters actionFilters, ScriptService scriptService) {
|
||||||
super(GetScriptContextAction.NAME, transportService, actionFilters, GetScriptContextRequest::new);
|
super(
|
||||||
|
GetScriptContextAction.NAME,
|
||||||
|
transportService,
|
||||||
|
actionFilters,
|
||||||
|
GetScriptContextRequest::new,
|
||||||
|
EsExecutors.DIRECT_EXECUTOR_SERVICE
|
||||||
|
);
|
||||||
this.scriptService = scriptService;
|
this.scriptService = scriptService;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,7 @@ import org.elasticsearch.action.ActionListener;
|
||||||
import org.elasticsearch.action.support.ActionFilters;
|
import org.elasticsearch.action.support.ActionFilters;
|
||||||
import org.elasticsearch.action.support.HandledTransportAction;
|
import org.elasticsearch.action.support.HandledTransportAction;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.script.ScriptService;
|
import org.elasticsearch.script.ScriptService;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
import org.elasticsearch.transport.TransportService;
|
import org.elasticsearch.transport.TransportService;
|
||||||
|
@ -21,7 +22,13 @@ public class TransportGetScriptLanguageAction extends HandledTransportAction<Get
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public TransportGetScriptLanguageAction(TransportService transportService, ActionFilters actionFilters, ScriptService scriptService) {
|
public TransportGetScriptLanguageAction(TransportService transportService, ActionFilters actionFilters, ScriptService scriptService) {
|
||||||
super(GetScriptLanguageAction.NAME, transportService, actionFilters, GetScriptLanguageRequest::new);
|
super(
|
||||||
|
GetScriptLanguageAction.NAME,
|
||||||
|
transportService,
|
||||||
|
actionFilters,
|
||||||
|
GetScriptLanguageRequest::new,
|
||||||
|
EsExecutors.DIRECT_EXECUTOR_SERVICE
|
||||||
|
);
|
||||||
this.scriptService = scriptService;
|
this.scriptService = scriptService;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,7 @@ import org.elasticsearch.action.support.master.AcknowledgedResponse;
|
||||||
import org.elasticsearch.client.internal.node.NodeClient;
|
import org.elasticsearch.client.internal.node.NodeClient;
|
||||||
import org.elasticsearch.cluster.metadata.IndexMetadata;
|
import org.elasticsearch.cluster.metadata.IndexMetadata;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.gateway.LocalAllocateDangledIndices;
|
import org.elasticsearch.gateway.LocalAllocateDangledIndices;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
import org.elasticsearch.transport.TransportService;
|
import org.elasticsearch.transport.TransportService;
|
||||||
|
@ -49,7 +50,13 @@ public class TransportImportDanglingIndexAction extends HandledTransportAction<I
|
||||||
LocalAllocateDangledIndices danglingIndexAllocator,
|
LocalAllocateDangledIndices danglingIndexAllocator,
|
||||||
NodeClient nodeClient
|
NodeClient nodeClient
|
||||||
) {
|
) {
|
||||||
super(ImportDanglingIndexAction.NAME, transportService, actionFilters, ImportDanglingIndexRequest::new);
|
super(
|
||||||
|
ImportDanglingIndexAction.NAME,
|
||||||
|
transportService,
|
||||||
|
actionFilters,
|
||||||
|
ImportDanglingIndexRequest::new,
|
||||||
|
EsExecutors.DIRECT_EXECUTOR_SERVICE
|
||||||
|
);
|
||||||
this.danglingIndexAllocator = danglingIndexAllocator;
|
this.danglingIndexAllocator = danglingIndexAllocator;
|
||||||
this.nodeClient = nodeClient;
|
this.nodeClient = nodeClient;
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,6 +16,7 @@ import org.elasticsearch.cluster.ClusterState;
|
||||||
import org.elasticsearch.cluster.metadata.IndexNameExpressionResolver;
|
import org.elasticsearch.cluster.metadata.IndexNameExpressionResolver;
|
||||||
import org.elasticsearch.cluster.service.ClusterService;
|
import org.elasticsearch.cluster.service.ClusterService;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
import org.elasticsearch.transport.TransportService;
|
import org.elasticsearch.transport.TransportService;
|
||||||
|
|
||||||
|
@ -41,7 +42,13 @@ public class TransportGetFieldMappingsAction extends HandledTransportAction<GetF
|
||||||
IndexNameExpressionResolver indexNameExpressionResolver,
|
IndexNameExpressionResolver indexNameExpressionResolver,
|
||||||
NodeClient client
|
NodeClient client
|
||||||
) {
|
) {
|
||||||
super(GetFieldMappingsAction.NAME, transportService, actionFilters, GetFieldMappingsRequest::new);
|
super(
|
||||||
|
GetFieldMappingsAction.NAME,
|
||||||
|
transportService,
|
||||||
|
actionFilters,
|
||||||
|
GetFieldMappingsRequest::new,
|
||||||
|
EsExecutors.DIRECT_EXECUTOR_SERVICE
|
||||||
|
);
|
||||||
this.clusterService = clusterService;
|
this.clusterService = clusterService;
|
||||||
this.indexNameExpressionResolver = indexNameExpressionResolver;
|
this.indexNameExpressionResolver = indexNameExpressionResolver;
|
||||||
this.client = client;
|
this.client = client;
|
||||||
|
|
|
@ -454,7 +454,7 @@ public class ResolveIndexAction extends ActionType<ResolveIndexAction.Response>
|
||||||
ActionFilters actionFilters,
|
ActionFilters actionFilters,
|
||||||
IndexNameExpressionResolver indexNameExpressionResolver
|
IndexNameExpressionResolver indexNameExpressionResolver
|
||||||
) {
|
) {
|
||||||
super(NAME, transportService, actionFilters, Request::new);
|
super(NAME, transportService, actionFilters, Request::new, EsExecutors.DIRECT_EXECUTOR_SERVICE);
|
||||||
this.threadPool = threadPool;
|
this.threadPool = threadPool;
|
||||||
this.clusterService = clusterService;
|
this.clusterService = clusterService;
|
||||||
this.remoteClusterService = transportService.getRemoteClusterService();
|
this.remoteClusterService = transportService.getRemoteClusterService();
|
||||||
|
|
|
@ -17,6 +17,7 @@ import org.elasticsearch.action.support.WriteResponse;
|
||||||
import org.elasticsearch.action.support.replication.ReplicatedWriteRequest;
|
import org.elasticsearch.action.support.replication.ReplicatedWriteRequest;
|
||||||
import org.elasticsearch.action.support.replication.ReplicationResponse;
|
import org.elasticsearch.action.support.replication.ReplicationResponse;
|
||||||
import org.elasticsearch.common.io.stream.Writeable;
|
import org.elasticsearch.common.io.stream.Writeable;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
import org.elasticsearch.transport.TransportService;
|
import org.elasticsearch.transport.TransportService;
|
||||||
|
|
||||||
|
@ -38,7 +39,7 @@ public abstract class TransportSingleItemBulkWriteAction<
|
||||||
Writeable.Reader<Request> requestReader,
|
Writeable.Reader<Request> requestReader,
|
||||||
TransportBulkAction bulkAction
|
TransportBulkAction bulkAction
|
||||||
) {
|
) {
|
||||||
super(actionName, transportService, actionFilters, requestReader);
|
super(actionName, transportService, actionFilters, requestReader, EsExecutors.DIRECT_EXECUTOR_SERVICE);
|
||||||
this.bulkAction = bulkAction;
|
this.bulkAction = bulkAction;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,7 @@ import org.elasticsearch.cluster.metadata.IndexNameExpressionResolver;
|
||||||
import org.elasticsearch.cluster.service.ClusterService;
|
import org.elasticsearch.cluster.service.ClusterService;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
import org.elasticsearch.common.util.concurrent.AtomicArray;
|
import org.elasticsearch.common.util.concurrent.AtomicArray;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.index.shard.ShardId;
|
import org.elasticsearch.index.shard.ShardId;
|
||||||
import org.elasticsearch.indices.IndicesService;
|
import org.elasticsearch.indices.IndicesService;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
|
@ -44,7 +45,7 @@ public class TransportMultiGetAction extends HandledTransportAction<MultiGetRequ
|
||||||
IndexNameExpressionResolver resolver,
|
IndexNameExpressionResolver resolver,
|
||||||
IndicesService indicesService
|
IndicesService indicesService
|
||||||
) {
|
) {
|
||||||
super(MultiGetAction.NAME, transportService, actionFilters, MultiGetRequest::new);
|
super(MultiGetAction.NAME, transportService, actionFilters, MultiGetRequest::new, EsExecutors.DIRECT_EXECUTOR_SERVICE);
|
||||||
this.clusterService = clusterService;
|
this.clusterService = clusterService;
|
||||||
this.client = client;
|
this.client = client;
|
||||||
this.indexNameExpressionResolver = resolver;
|
this.indexNameExpressionResolver = resolver;
|
||||||
|
|
|
@ -19,6 +19,7 @@ import org.elasticsearch.cluster.node.DiscoveryNodes;
|
||||||
import org.elasticsearch.common.Randomness;
|
import org.elasticsearch.common.Randomness;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
import org.elasticsearch.common.settings.Setting;
|
import org.elasticsearch.common.settings.Setting;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.common.xcontent.XContentHelper;
|
import org.elasticsearch.common.xcontent.XContentHelper;
|
||||||
import org.elasticsearch.core.TimeValue;
|
import org.elasticsearch.core.TimeValue;
|
||||||
import org.elasticsearch.ingest.IngestService;
|
import org.elasticsearch.ingest.IngestService;
|
||||||
|
@ -58,7 +59,13 @@ public class SimulatePipelineTransportAction extends HandledTransportAction<Simu
|
||||||
ActionFilters actionFilters,
|
ActionFilters actionFilters,
|
||||||
IngestService ingestService
|
IngestService ingestService
|
||||||
) {
|
) {
|
||||||
super(SimulatePipelineAction.NAME, transportService, actionFilters, SimulatePipelineRequest::new);
|
super(
|
||||||
|
SimulatePipelineAction.NAME,
|
||||||
|
transportService,
|
||||||
|
actionFilters,
|
||||||
|
SimulatePipelineRequest::new,
|
||||||
|
EsExecutors.DIRECT_EXECUTOR_SERVICE
|
||||||
|
);
|
||||||
this.ingestService = ingestService;
|
this.ingestService = ingestService;
|
||||||
this.executionService = new SimulateExecutionService(threadPool);
|
this.executionService = new SimulateExecutionService(threadPool);
|
||||||
this.transportService = transportService;
|
this.transportService = transportService;
|
||||||
|
|
|
@ -13,6 +13,7 @@ import org.elasticsearch.action.support.ActionFilters;
|
||||||
import org.elasticsearch.action.support.HandledTransportAction;
|
import org.elasticsearch.action.support.HandledTransportAction;
|
||||||
import org.elasticsearch.cluster.service.ClusterService;
|
import org.elasticsearch.cluster.service.ClusterService;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
import org.elasticsearch.transport.TransportService;
|
import org.elasticsearch.transport.TransportService;
|
||||||
|
|
||||||
|
@ -28,7 +29,7 @@ public class TransportClearScrollAction extends HandledTransportAction<ClearScro
|
||||||
ActionFilters actionFilters,
|
ActionFilters actionFilters,
|
||||||
SearchTransportService searchTransportService
|
SearchTransportService searchTransportService
|
||||||
) {
|
) {
|
||||||
super(ClearScrollAction.NAME, transportService, actionFilters, ClearScrollRequest::new);
|
super(ClearScrollAction.NAME, transportService, actionFilters, ClearScrollRequest::new, EsExecutors.DIRECT_EXECUTOR_SERVICE);
|
||||||
this.clusterService = clusterService;
|
this.clusterService = clusterService;
|
||||||
this.searchTransportService = searchTransportService;
|
this.searchTransportService = searchTransportService;
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,6 +14,7 @@ import org.elasticsearch.action.support.HandledTransportAction;
|
||||||
import org.elasticsearch.cluster.service.ClusterService;
|
import org.elasticsearch.cluster.service.ClusterService;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
import org.elasticsearch.common.io.stream.NamedWriteableRegistry;
|
import org.elasticsearch.common.io.stream.NamedWriteableRegistry;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
import org.elasticsearch.transport.TransportService;
|
import org.elasticsearch.transport.TransportService;
|
||||||
|
|
||||||
|
@ -33,7 +34,13 @@ public class TransportClosePointInTimeAction extends HandledTransportAction<Clos
|
||||||
SearchTransportService searchTransportService,
|
SearchTransportService searchTransportService,
|
||||||
NamedWriteableRegistry namedWriteableRegistry
|
NamedWriteableRegistry namedWriteableRegistry
|
||||||
) {
|
) {
|
||||||
super(ClosePointInTimeAction.NAME, transportService, actionFilters, ClosePointInTimeRequest::new);
|
super(
|
||||||
|
ClosePointInTimeAction.NAME,
|
||||||
|
transportService,
|
||||||
|
actionFilters,
|
||||||
|
ClosePointInTimeRequest::new,
|
||||||
|
EsExecutors.DIRECT_EXECUTOR_SERVICE
|
||||||
|
);
|
||||||
this.clusterService = clusterService;
|
this.clusterService = clusterService;
|
||||||
this.searchTransportService = searchTransportService;
|
this.searchTransportService = searchTransportService;
|
||||||
this.namedWriteableRegistry = namedWriteableRegistry;
|
this.namedWriteableRegistry = namedWriteableRegistry;
|
||||||
|
|
|
@ -47,7 +47,13 @@ public class TransportMultiSearchAction extends HandledTransportAction<MultiSear
|
||||||
ActionFilters actionFilters,
|
ActionFilters actionFilters,
|
||||||
NodeClient client
|
NodeClient client
|
||||||
) {
|
) {
|
||||||
super(MultiSearchAction.NAME, transportService, actionFilters, (Writeable.Reader<MultiSearchRequest>) MultiSearchRequest::new);
|
super(
|
||||||
|
MultiSearchAction.NAME,
|
||||||
|
transportService,
|
||||||
|
actionFilters,
|
||||||
|
(Writeable.Reader<MultiSearchRequest>) MultiSearchRequest::new,
|
||||||
|
EsExecutors.DIRECT_EXECUTOR_SERVICE
|
||||||
|
);
|
||||||
this.threadPool = threadPool;
|
this.threadPool = threadPool;
|
||||||
this.clusterService = clusterService;
|
this.clusterService = clusterService;
|
||||||
this.allocatedProcessors = EsExecutors.allocatedProcessors(settings);
|
this.allocatedProcessors = EsExecutors.allocatedProcessors(settings);
|
||||||
|
@ -64,7 +70,13 @@ public class TransportMultiSearchAction extends HandledTransportAction<MultiSear
|
||||||
LongSupplier relativeTimeProvider,
|
LongSupplier relativeTimeProvider,
|
||||||
NodeClient client
|
NodeClient client
|
||||||
) {
|
) {
|
||||||
super(MultiSearchAction.NAME, transportService, actionFilters, (Writeable.Reader<MultiSearchRequest>) MultiSearchRequest::new);
|
super(
|
||||||
|
MultiSearchAction.NAME,
|
||||||
|
transportService,
|
||||||
|
actionFilters,
|
||||||
|
(Writeable.Reader<MultiSearchRequest>) MultiSearchRequest::new,
|
||||||
|
EsExecutors.DIRECT_EXECUTOR_SERVICE
|
||||||
|
);
|
||||||
this.threadPool = threadPool;
|
this.threadPool = threadPool;
|
||||||
this.clusterService = clusterService;
|
this.clusterService = clusterService;
|
||||||
this.allocatedProcessors = allocatedProcessors;
|
this.allocatedProcessors = allocatedProcessors;
|
||||||
|
|
|
@ -62,7 +62,13 @@ public class TransportOpenPointInTimeAction extends HandledTransportAction<OpenP
|
||||||
TransportSearchAction transportSearchAction,
|
TransportSearchAction transportSearchAction,
|
||||||
SearchTransportService searchTransportService
|
SearchTransportService searchTransportService
|
||||||
) {
|
) {
|
||||||
super(OpenPointInTimeAction.NAME, transportService, actionFilters, OpenPointInTimeRequest::new);
|
super(
|
||||||
|
OpenPointInTimeAction.NAME,
|
||||||
|
transportService,
|
||||||
|
actionFilters,
|
||||||
|
OpenPointInTimeRequest::new,
|
||||||
|
EsExecutors.DIRECT_EXECUTOR_SERVICE
|
||||||
|
);
|
||||||
this.transportService = transportService;
|
this.transportService = transportService;
|
||||||
this.transportSearchAction = transportSearchAction;
|
this.transportSearchAction = transportSearchAction;
|
||||||
this.searchService = searchService;
|
this.searchService = searchService;
|
||||||
|
|
|
@ -47,6 +47,7 @@ import org.elasticsearch.common.settings.Setting.Property;
|
||||||
import org.elasticsearch.common.util.CollectionUtils;
|
import org.elasticsearch.common.util.CollectionUtils;
|
||||||
import org.elasticsearch.common.util.Maps;
|
import org.elasticsearch.common.util.Maps;
|
||||||
import org.elasticsearch.common.util.concurrent.CountDown;
|
import org.elasticsearch.common.util.concurrent.CountDown;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.core.Nullable;
|
import org.elasticsearch.core.Nullable;
|
||||||
import org.elasticsearch.core.TimeValue;
|
import org.elasticsearch.core.TimeValue;
|
||||||
import org.elasticsearch.index.Index;
|
import org.elasticsearch.index.Index;
|
||||||
|
@ -158,7 +159,13 @@ public class TransportSearchAction extends HandledTransportAction<SearchRequest,
|
||||||
NamedWriteableRegistry namedWriteableRegistry,
|
NamedWriteableRegistry namedWriteableRegistry,
|
||||||
ExecutorSelector executorSelector
|
ExecutorSelector executorSelector
|
||||||
) {
|
) {
|
||||||
super(SearchAction.NAME, transportService, actionFilters, (Writeable.Reader<SearchRequest>) SearchRequest::new);
|
super(
|
||||||
|
SearchAction.NAME,
|
||||||
|
transportService,
|
||||||
|
actionFilters,
|
||||||
|
(Writeable.Reader<SearchRequest>) SearchRequest::new,
|
||||||
|
EsExecutors.DIRECT_EXECUTOR_SERVICE
|
||||||
|
);
|
||||||
this.threadPool = threadPool;
|
this.threadPool = threadPool;
|
||||||
this.circuitBreaker = circuitBreakerService.getBreaker(CircuitBreaker.REQUEST);
|
this.circuitBreaker = circuitBreakerService.getBreaker(CircuitBreaker.REQUEST);
|
||||||
this.searchPhaseController = searchPhaseController;
|
this.searchPhaseController = searchPhaseController;
|
||||||
|
|
|
@ -13,6 +13,7 @@ import org.elasticsearch.action.support.ActionFilters;
|
||||||
import org.elasticsearch.action.support.HandledTransportAction;
|
import org.elasticsearch.action.support.HandledTransportAction;
|
||||||
import org.elasticsearch.cluster.service.ClusterService;
|
import org.elasticsearch.cluster.service.ClusterService;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
import org.elasticsearch.transport.TransportService;
|
import org.elasticsearch.transport.TransportService;
|
||||||
|
|
||||||
|
@ -32,7 +33,7 @@ public class TransportSearchScrollAction extends HandledTransportAction<SearchSc
|
||||||
ActionFilters actionFilters,
|
ActionFilters actionFilters,
|
||||||
SearchTransportService searchTransportService
|
SearchTransportService searchTransportService
|
||||||
) {
|
) {
|
||||||
super(SearchScrollAction.NAME, transportService, actionFilters, SearchScrollRequest::new);
|
super(SearchScrollAction.NAME, transportService, actionFilters, SearchScrollRequest::new, EsExecutors.DIRECT_EXECUTOR_SERVICE);
|
||||||
this.clusterService = clusterService;
|
this.clusterService = clusterService;
|
||||||
this.searchTransportService = searchTransportService;
|
this.searchTransportService = searchTransportService;
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,20 +11,21 @@ import org.elasticsearch.action.ActionRequest;
|
||||||
import org.elasticsearch.action.ActionResponse;
|
import org.elasticsearch.action.ActionResponse;
|
||||||
import org.elasticsearch.common.io.stream.Writeable;
|
import org.elasticsearch.common.io.stream.Writeable;
|
||||||
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.tasks.Task;
|
|
||||||
import org.elasticsearch.transport.TransportChannel;
|
|
||||||
import org.elasticsearch.transport.TransportRequestHandler;
|
|
||||||
import org.elasticsearch.transport.TransportService;
|
import org.elasticsearch.transport.TransportService;
|
||||||
|
|
||||||
import java.util.concurrent.Executor;
|
import java.util.concurrent.Executor;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A TransportAction that self registers a handler into the transport service
|
* A {@link TransportAction} which, on creation, registers a handler for its own {@link #actionName} with the transport service.
|
||||||
*/
|
*/
|
||||||
public abstract class HandledTransportAction<Request extends ActionRequest, Response extends ActionResponse> extends TransportAction<
|
public abstract class HandledTransportAction<Request extends ActionRequest, Response extends ActionResponse> extends TransportAction<
|
||||||
Request,
|
Request,
|
||||||
Response> {
|
Response> {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated always specify an executor
|
||||||
|
*/
|
||||||
|
@Deprecated(forRemoval = true)
|
||||||
protected HandledTransportAction(
|
protected HandledTransportAction(
|
||||||
String actionName,
|
String actionName,
|
||||||
TransportService transportService,
|
TransportService transportService,
|
||||||
|
@ -44,6 +45,10 @@ public abstract class HandledTransportAction<Request extends ActionRequest, Resp
|
||||||
this(actionName, true, transportService, actionFilters, requestReader, executor);
|
this(actionName, true, transportService, actionFilters, requestReader, executor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated always specify an executor
|
||||||
|
*/
|
||||||
|
@Deprecated(forRemoval = true)
|
||||||
protected HandledTransportAction(
|
protected HandledTransportAction(
|
||||||
String actionName,
|
String actionName,
|
||||||
boolean canTripCircuitBreaker,
|
boolean canTripCircuitBreaker,
|
||||||
|
@ -63,15 +68,13 @@ public abstract class HandledTransportAction<Request extends ActionRequest, Resp
|
||||||
Executor executor
|
Executor executor
|
||||||
) {
|
) {
|
||||||
super(actionName, actionFilters, transportService.getTaskManager());
|
super(actionName, actionFilters, transportService.getTaskManager());
|
||||||
transportService.registerRequestHandler(actionName, executor, false, canTripCircuitBreaker, requestReader, new TransportHandler());
|
transportService.registerRequestHandler(
|
||||||
|
actionName,
|
||||||
|
executor,
|
||||||
|
false,
|
||||||
|
canTripCircuitBreaker,
|
||||||
|
requestReader,
|
||||||
|
(request, channel, task) -> execute(task, request, new ChannelActionListener<>(channel))
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
class TransportHandler implements TransportRequestHandler<Request> {
|
|
||||||
@Override
|
|
||||||
public final void messageReceived(final Request request, final TransportChannel channel, Task task) {
|
|
||||||
// We already got the task created on the network layer - no need to create it again on the transport layer
|
|
||||||
execute(task, request, new ChannelActionListener<>(channel));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,6 +13,7 @@ import org.elasticsearch.action.ActionRequest;
|
||||||
import org.elasticsearch.action.ActionResponse;
|
import org.elasticsearch.action.ActionResponse;
|
||||||
import org.elasticsearch.cluster.service.ClusterService;
|
import org.elasticsearch.cluster.service.ClusterService;
|
||||||
import org.elasticsearch.common.io.stream.Writeable;
|
import org.elasticsearch.common.io.stream.Writeable;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.reservedstate.ActionWithReservedState;
|
import org.elasticsearch.reservedstate.ActionWithReservedState;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
import org.elasticsearch.transport.TransportService;
|
import org.elasticsearch.transport.TransportService;
|
||||||
|
@ -34,7 +35,7 @@ public abstract class ReservedStateAwareHandledTransportAction<Request extends A
|
||||||
ActionFilters actionFilters,
|
ActionFilters actionFilters,
|
||||||
Writeable.Reader<Request> requestReader
|
Writeable.Reader<Request> requestReader
|
||||||
) {
|
) {
|
||||||
super(actionName, transportService, actionFilters, requestReader);
|
super(actionName, transportService, actionFilters, requestReader, EsExecutors.DIRECT_EXECUTOR_SERVICE);
|
||||||
this.clusterService = clusterService;
|
this.clusterService = clusterService;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,7 @@ import org.elasticsearch.cluster.routing.ShardRouting;
|
||||||
import org.elasticsearch.cluster.service.ClusterService;
|
import org.elasticsearch.cluster.service.ClusterService;
|
||||||
import org.elasticsearch.common.io.stream.StreamInput;
|
import org.elasticsearch.common.io.stream.StreamInput;
|
||||||
import org.elasticsearch.common.io.stream.Writeable;
|
import org.elasticsearch.common.io.stream.Writeable;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.core.Strings;
|
import org.elasticsearch.core.Strings;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
import org.elasticsearch.transport.TransportChannel;
|
import org.elasticsearch.transport.TransportChannel;
|
||||||
|
@ -53,7 +54,7 @@ public abstract class TransportBroadcastUnpromotableAction<Request extends Broad
|
||||||
Writeable.Reader<Request> requestReader,
|
Writeable.Reader<Request> requestReader,
|
||||||
Executor executor
|
Executor executor
|
||||||
) {
|
) {
|
||||||
super(actionName, transportService, actionFilters, requestReader);
|
super(actionName, transportService, actionFilters, requestReader, EsExecutors.DIRECT_EXECUTOR_SERVICE);
|
||||||
this.clusterService = clusterService;
|
this.clusterService = clusterService;
|
||||||
this.shardStateAction = shardStateAction;
|
this.shardStateAction = shardStateAction;
|
||||||
this.transportService = transportService;
|
this.transportService = transportService;
|
||||||
|
|
|
@ -27,6 +27,7 @@ import org.elasticsearch.cluster.node.DiscoveryNodes;
|
||||||
import org.elasticsearch.cluster.service.ClusterService;
|
import org.elasticsearch.cluster.service.ClusterService;
|
||||||
import org.elasticsearch.cluster.service.MasterService;
|
import org.elasticsearch.cluster.service.MasterService;
|
||||||
import org.elasticsearch.common.io.stream.Writeable;
|
import org.elasticsearch.common.io.stream.Writeable;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.core.TimeValue;
|
import org.elasticsearch.core.TimeValue;
|
||||||
import org.elasticsearch.discovery.MasterNotDiscoveredException;
|
import org.elasticsearch.discovery.MasterNotDiscoveredException;
|
||||||
import org.elasticsearch.gateway.GatewayService;
|
import org.elasticsearch.gateway.GatewayService;
|
||||||
|
@ -104,7 +105,7 @@ public abstract class TransportMasterNodeAction<Request extends MasterNodeReques
|
||||||
Writeable.Reader<Response> response,
|
Writeable.Reader<Response> response,
|
||||||
Executor executor
|
Executor executor
|
||||||
) {
|
) {
|
||||||
super(actionName, canTripCircuitBreaker, transportService, actionFilters, request);
|
super(actionName, canTripCircuitBreaker, transportService, actionFilters, request, EsExecutors.DIRECT_EXECUTOR_SERVICE);
|
||||||
this.transportService = transportService;
|
this.transportService = transportService;
|
||||||
this.clusterService = clusterService;
|
this.clusterService = clusterService;
|
||||||
this.threadPool = threadPool;
|
this.threadPool = threadPool;
|
||||||
|
|
|
@ -26,6 +26,7 @@ import org.elasticsearch.cluster.metadata.IndexNameExpressionResolver;
|
||||||
import org.elasticsearch.cluster.routing.IndexRoutingTable;
|
import org.elasticsearch.cluster.routing.IndexRoutingTable;
|
||||||
import org.elasticsearch.cluster.service.ClusterService;
|
import org.elasticsearch.cluster.service.ClusterService;
|
||||||
import org.elasticsearch.common.io.stream.Writeable;
|
import org.elasticsearch.common.io.stream.Writeable;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.core.CheckedConsumer;
|
import org.elasticsearch.core.CheckedConsumer;
|
||||||
import org.elasticsearch.index.shard.ShardId;
|
import org.elasticsearch.index.shard.ShardId;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
|
@ -65,7 +66,7 @@ public abstract class TransportBroadcastReplicationAction<
|
||||||
ActionType<ShardResponse> replicatedBroadcastShardAction,
|
ActionType<ShardResponse> replicatedBroadcastShardAction,
|
||||||
Executor executor
|
Executor executor
|
||||||
) {
|
) {
|
||||||
super(name, transportService, actionFilters, requestReader);
|
super(name, transportService, actionFilters, requestReader, EsExecutors.DIRECT_EXECUTOR_SERVICE);
|
||||||
this.client = client;
|
this.client = client;
|
||||||
this.replicatedBroadcastShardAction = replicatedBroadcastShardAction;
|
this.replicatedBroadcastShardAction = replicatedBroadcastShardAction;
|
||||||
this.clusterService = clusterService;
|
this.clusterService = clusterService;
|
||||||
|
|
|
@ -66,7 +66,7 @@ public abstract class TransportInstanceSingleOperationAction<
|
||||||
IndexNameExpressionResolver indexNameExpressionResolver,
|
IndexNameExpressionResolver indexNameExpressionResolver,
|
||||||
Writeable.Reader<Request> request
|
Writeable.Reader<Request> request
|
||||||
) {
|
) {
|
||||||
super(actionName, transportService, actionFilters, request);
|
super(actionName, transportService, actionFilters, request, EsExecutors.DIRECT_EXECUTOR_SERVICE);
|
||||||
this.threadPool = threadPool;
|
this.threadPool = threadPool;
|
||||||
this.clusterService = clusterService;
|
this.clusterService = clusterService;
|
||||||
this.transportService = transportService;
|
this.transportService = transportService;
|
||||||
|
|
|
@ -13,6 +13,7 @@ import org.elasticsearch.action.support.ActionFilters;
|
||||||
import org.elasticsearch.action.support.HandledTransportAction;
|
import org.elasticsearch.action.support.HandledTransportAction;
|
||||||
import org.elasticsearch.client.internal.Client;
|
import org.elasticsearch.client.internal.Client;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.synonyms.SynonymsManagementAPIService;
|
import org.elasticsearch.synonyms.SynonymsManagementAPIService;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
import org.elasticsearch.transport.TransportService;
|
import org.elasticsearch.transport.TransportService;
|
||||||
|
@ -23,7 +24,13 @@ public class TransportDeleteSynonymRuleAction extends HandledTransportAction<Del
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public TransportDeleteSynonymRuleAction(TransportService transportService, ActionFilters actionFilters, Client client) {
|
public TransportDeleteSynonymRuleAction(TransportService transportService, ActionFilters actionFilters, Client client) {
|
||||||
super(DeleteSynonymRuleAction.NAME, transportService, actionFilters, DeleteSynonymRuleAction.Request::new);
|
super(
|
||||||
|
DeleteSynonymRuleAction.NAME,
|
||||||
|
transportService,
|
||||||
|
actionFilters,
|
||||||
|
DeleteSynonymRuleAction.Request::new,
|
||||||
|
EsExecutors.DIRECT_EXECUTOR_SERVICE
|
||||||
|
);
|
||||||
|
|
||||||
this.synonymsManagementAPIService = new SynonymsManagementAPIService(client);
|
this.synonymsManagementAPIService = new SynonymsManagementAPIService(client);
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,6 +14,7 @@ import org.elasticsearch.action.support.HandledTransportAction;
|
||||||
import org.elasticsearch.action.support.master.AcknowledgedResponse;
|
import org.elasticsearch.action.support.master.AcknowledgedResponse;
|
||||||
import org.elasticsearch.client.internal.Client;
|
import org.elasticsearch.client.internal.Client;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.synonyms.SynonymsManagementAPIService;
|
import org.elasticsearch.synonyms.SynonymsManagementAPIService;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
import org.elasticsearch.transport.TransportService;
|
import org.elasticsearch.transport.TransportService;
|
||||||
|
@ -24,7 +25,13 @@ public class TransportDeleteSynonymsAction extends HandledTransportAction<Delete
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public TransportDeleteSynonymsAction(TransportService transportService, ActionFilters actionFilters, Client client) {
|
public TransportDeleteSynonymsAction(TransportService transportService, ActionFilters actionFilters, Client client) {
|
||||||
super(DeleteSynonymsAction.NAME, transportService, actionFilters, DeleteSynonymsAction.Request::new);
|
super(
|
||||||
|
DeleteSynonymsAction.NAME,
|
||||||
|
transportService,
|
||||||
|
actionFilters,
|
||||||
|
DeleteSynonymsAction.Request::new,
|
||||||
|
EsExecutors.DIRECT_EXECUTOR_SERVICE
|
||||||
|
);
|
||||||
|
|
||||||
this.synonymsManagementAPIService = new SynonymsManagementAPIService(client);
|
this.synonymsManagementAPIService = new SynonymsManagementAPIService(client);
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,6 +13,7 @@ import org.elasticsearch.action.support.ActionFilters;
|
||||||
import org.elasticsearch.action.support.HandledTransportAction;
|
import org.elasticsearch.action.support.HandledTransportAction;
|
||||||
import org.elasticsearch.client.internal.Client;
|
import org.elasticsearch.client.internal.Client;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.synonyms.SynonymsManagementAPIService;
|
import org.elasticsearch.synonyms.SynonymsManagementAPIService;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
import org.elasticsearch.transport.TransportService;
|
import org.elasticsearch.transport.TransportService;
|
||||||
|
@ -23,7 +24,13 @@ public class TransportGetSynonymRuleAction extends HandledTransportAction<GetSyn
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public TransportGetSynonymRuleAction(TransportService transportService, ActionFilters actionFilters, Client client) {
|
public TransportGetSynonymRuleAction(TransportService transportService, ActionFilters actionFilters, Client client) {
|
||||||
super(GetSynonymRuleAction.NAME, transportService, actionFilters, GetSynonymRuleAction.Request::new);
|
super(
|
||||||
|
GetSynonymRuleAction.NAME,
|
||||||
|
transportService,
|
||||||
|
actionFilters,
|
||||||
|
GetSynonymRuleAction.Request::new,
|
||||||
|
EsExecutors.DIRECT_EXECUTOR_SERVICE
|
||||||
|
);
|
||||||
|
|
||||||
this.synonymsManagementAPIService = new SynonymsManagementAPIService(client);
|
this.synonymsManagementAPIService = new SynonymsManagementAPIService(client);
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,6 +13,7 @@ import org.elasticsearch.action.support.ActionFilters;
|
||||||
import org.elasticsearch.action.support.HandledTransportAction;
|
import org.elasticsearch.action.support.HandledTransportAction;
|
||||||
import org.elasticsearch.client.internal.Client;
|
import org.elasticsearch.client.internal.Client;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.synonyms.SynonymsManagementAPIService;
|
import org.elasticsearch.synonyms.SynonymsManagementAPIService;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
import org.elasticsearch.transport.TransportService;
|
import org.elasticsearch.transport.TransportService;
|
||||||
|
@ -23,7 +24,7 @@ public class TransportGetSynonymsAction extends HandledTransportAction<GetSynony
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public TransportGetSynonymsAction(TransportService transportService, ActionFilters actionFilters, Client client) {
|
public TransportGetSynonymsAction(TransportService transportService, ActionFilters actionFilters, Client client) {
|
||||||
super(GetSynonymsAction.NAME, transportService, actionFilters, GetSynonymsAction.Request::new);
|
super(GetSynonymsAction.NAME, transportService, actionFilters, GetSynonymsAction.Request::new, EsExecutors.DIRECT_EXECUTOR_SERVICE);
|
||||||
|
|
||||||
this.synonymsManagementAPIService = new SynonymsManagementAPIService(client);
|
this.synonymsManagementAPIService = new SynonymsManagementAPIService(client);
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,6 +13,7 @@ import org.elasticsearch.action.support.ActionFilters;
|
||||||
import org.elasticsearch.action.support.HandledTransportAction;
|
import org.elasticsearch.action.support.HandledTransportAction;
|
||||||
import org.elasticsearch.client.internal.Client;
|
import org.elasticsearch.client.internal.Client;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.synonyms.SynonymsManagementAPIService;
|
import org.elasticsearch.synonyms.SynonymsManagementAPIService;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
import org.elasticsearch.transport.TransportService;
|
import org.elasticsearch.transport.TransportService;
|
||||||
|
@ -23,7 +24,13 @@ public class TransportGetSynonymsSetsAction extends HandledTransportAction<GetSy
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public TransportGetSynonymsSetsAction(TransportService transportService, ActionFilters actionFilters, Client client) {
|
public TransportGetSynonymsSetsAction(TransportService transportService, ActionFilters actionFilters, Client client) {
|
||||||
super(GetSynonymsSetsAction.NAME, transportService, actionFilters, GetSynonymsSetsAction.Request::new);
|
super(
|
||||||
|
GetSynonymsSetsAction.NAME,
|
||||||
|
transportService,
|
||||||
|
actionFilters,
|
||||||
|
GetSynonymsSetsAction.Request::new,
|
||||||
|
EsExecutors.DIRECT_EXECUTOR_SERVICE
|
||||||
|
);
|
||||||
|
|
||||||
this.synonymsManagementAPIService = new SynonymsManagementAPIService(client);
|
this.synonymsManagementAPIService = new SynonymsManagementAPIService(client);
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,6 +13,7 @@ import org.elasticsearch.action.support.ActionFilters;
|
||||||
import org.elasticsearch.action.support.HandledTransportAction;
|
import org.elasticsearch.action.support.HandledTransportAction;
|
||||||
import org.elasticsearch.client.internal.Client;
|
import org.elasticsearch.client.internal.Client;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.synonyms.SynonymsManagementAPIService;
|
import org.elasticsearch.synonyms.SynonymsManagementAPIService;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
import org.elasticsearch.transport.TransportService;
|
import org.elasticsearch.transport.TransportService;
|
||||||
|
@ -23,7 +24,13 @@ public class TransportPutSynonymRuleAction extends HandledTransportAction<PutSyn
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public TransportPutSynonymRuleAction(TransportService transportService, ActionFilters actionFilters, Client client) {
|
public TransportPutSynonymRuleAction(TransportService transportService, ActionFilters actionFilters, Client client) {
|
||||||
super(PutSynonymRuleAction.NAME, transportService, actionFilters, PutSynonymRuleAction.Request::new);
|
super(
|
||||||
|
PutSynonymRuleAction.NAME,
|
||||||
|
transportService,
|
||||||
|
actionFilters,
|
||||||
|
PutSynonymRuleAction.Request::new,
|
||||||
|
EsExecutors.DIRECT_EXECUTOR_SERVICE
|
||||||
|
);
|
||||||
|
|
||||||
this.synonymsManagementAPIService = new SynonymsManagementAPIService(client);
|
this.synonymsManagementAPIService = new SynonymsManagementAPIService(client);
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,6 +13,7 @@ import org.elasticsearch.action.support.ActionFilters;
|
||||||
import org.elasticsearch.action.support.HandledTransportAction;
|
import org.elasticsearch.action.support.HandledTransportAction;
|
||||||
import org.elasticsearch.client.internal.Client;
|
import org.elasticsearch.client.internal.Client;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.synonyms.SynonymsManagementAPIService;
|
import org.elasticsearch.synonyms.SynonymsManagementAPIService;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
import org.elasticsearch.transport.TransportService;
|
import org.elasticsearch.transport.TransportService;
|
||||||
|
@ -23,7 +24,7 @@ public class TransportPutSynonymsAction extends HandledTransportAction<PutSynony
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public TransportPutSynonymsAction(TransportService transportService, ActionFilters actionFilters, Client client) {
|
public TransportPutSynonymsAction(TransportService transportService, ActionFilters actionFilters, Client client) {
|
||||||
super(PutSynonymsAction.NAME, transportService, actionFilters, PutSynonymsAction.Request::new);
|
super(PutSynonymsAction.NAME, transportService, actionFilters, PutSynonymsAction.Request::new, EsExecutors.DIRECT_EXECUTOR_SERVICE);
|
||||||
|
|
||||||
this.synonymsManagementAPIService = new SynonymsManagementAPIService(client);
|
this.synonymsManagementAPIService = new SynonymsManagementAPIService(client);
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,6 +19,7 @@ import org.elasticsearch.cluster.metadata.IndexNameExpressionResolver;
|
||||||
import org.elasticsearch.cluster.service.ClusterService;
|
import org.elasticsearch.cluster.service.ClusterService;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
import org.elasticsearch.common.util.concurrent.AtomicArray;
|
import org.elasticsearch.common.util.concurrent.AtomicArray;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.index.shard.ShardId;
|
import org.elasticsearch.index.shard.ShardId;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
import org.elasticsearch.transport.TransportService;
|
import org.elasticsearch.transport.TransportService;
|
||||||
|
@ -41,7 +42,13 @@ public class TransportMultiTermVectorsAction extends HandledTransportAction<Mult
|
||||||
ActionFilters actionFilters,
|
ActionFilters actionFilters,
|
||||||
IndexNameExpressionResolver indexNameExpressionResolver
|
IndexNameExpressionResolver indexNameExpressionResolver
|
||||||
) {
|
) {
|
||||||
super(MultiTermVectorsAction.NAME, transportService, actionFilters, MultiTermVectorsRequest::new);
|
super(
|
||||||
|
MultiTermVectorsAction.NAME,
|
||||||
|
transportService,
|
||||||
|
actionFilters,
|
||||||
|
MultiTermVectorsRequest::new,
|
||||||
|
EsExecutors.DIRECT_EXECUTOR_SERVICE
|
||||||
|
);
|
||||||
this.clusterService = clusterService;
|
this.clusterService = clusterService;
|
||||||
this.client = client;
|
this.client = client;
|
||||||
this.indexNameExpressionResolver = indexNameExpressionResolver;
|
this.indexNameExpressionResolver = indexNameExpressionResolver;
|
||||||
|
|
|
@ -20,6 +20,7 @@ import org.elasticsearch.cluster.node.DiscoveryNode;
|
||||||
import org.elasticsearch.cluster.service.ClusterService;
|
import org.elasticsearch.cluster.service.ClusterService;
|
||||||
import org.elasticsearch.common.io.stream.Writeable;
|
import org.elasticsearch.common.io.stream.Writeable;
|
||||||
import org.elasticsearch.common.settings.Setting;
|
import org.elasticsearch.common.settings.Setting;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.core.TimeValue;
|
import org.elasticsearch.core.TimeValue;
|
||||||
import org.elasticsearch.health.node.selection.HealthNode;
|
import org.elasticsearch.health.node.selection.HealthNode;
|
||||||
import org.elasticsearch.tasks.CancellableTask;
|
import org.elasticsearch.tasks.CancellableTask;
|
||||||
|
@ -73,7 +74,7 @@ public abstract class TransportHealthNodeAction<Request extends HealthNodeReques
|
||||||
Writeable.Reader<Response> response,
|
Writeable.Reader<Response> response,
|
||||||
Executor executor
|
Executor executor
|
||||||
) {
|
) {
|
||||||
super(actionName, true, transportService, actionFilters, request);
|
super(actionName, true, transportService, actionFilters, request, EsExecutors.DIRECT_EXECUTOR_SERVICE);
|
||||||
this.transportService = transportService;
|
this.transportService = transportService;
|
||||||
this.clusterService = clusterService;
|
this.clusterService = clusterService;
|
||||||
this.threadPool = threadPool;
|
this.threadPool = threadPool;
|
||||||
|
|
|
@ -43,7 +43,7 @@ public class TransportGetAsyncSearchAction extends HandledTransportAction<GetAsy
|
||||||
ThreadPool threadPool,
|
ThreadPool threadPool,
|
||||||
BigArrays bigArrays
|
BigArrays bigArrays
|
||||||
) {
|
) {
|
||||||
super(GetAsyncSearchAction.NAME, transportService, actionFilters, GetAsyncResultRequest::new);
|
super(GetAsyncSearchAction.NAME, transportService, actionFilters, GetAsyncResultRequest::new, EsExecutors.DIRECT_EXECUTOR_SERVICE);
|
||||||
this.transportService = transportService;
|
this.transportService = transportService;
|
||||||
this.resultsService = createResultsService(transportService, clusterService, registry, client, threadPool, bigArrays);
|
this.resultsService = createResultsService(transportService, clusterService, registry, client, threadPool, bigArrays);
|
||||||
}
|
}
|
||||||
|
|
|
@ -47,7 +47,7 @@ public class TransportGetAsyncStatusAction extends HandledTransportAction<GetAsy
|
||||||
ThreadPool threadPool,
|
ThreadPool threadPool,
|
||||||
BigArrays bigArrays
|
BigArrays bigArrays
|
||||||
) {
|
) {
|
||||||
super(GetAsyncStatusAction.NAME, transportService, actionFilters, GetAsyncStatusRequest::new);
|
super(GetAsyncStatusAction.NAME, transportService, actionFilters, GetAsyncStatusRequest::new, EsExecutors.DIRECT_EXECUTOR_SERVICE);
|
||||||
this.transportService = transportService;
|
this.transportService = transportService;
|
||||||
this.clusterService = clusterService;
|
this.clusterService = clusterService;
|
||||||
this.store = new AsyncTaskIndexService<>(
|
this.store = new AsyncTaskIndexService<>(
|
||||||
|
|
|
@ -20,6 +20,7 @@ import org.elasticsearch.common.UUIDs;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
import org.elasticsearch.common.io.stream.NamedWriteableRegistry;
|
import org.elasticsearch.common.io.stream.NamedWriteableRegistry;
|
||||||
import org.elasticsearch.common.util.BigArrays;
|
import org.elasticsearch.common.util.BigArrays;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.common.util.concurrent.ThreadContext;
|
import org.elasticsearch.common.util.concurrent.ThreadContext;
|
||||||
import org.elasticsearch.core.TimeValue;
|
import org.elasticsearch.core.TimeValue;
|
||||||
import org.elasticsearch.search.SearchService;
|
import org.elasticsearch.search.SearchService;
|
||||||
|
@ -62,7 +63,13 @@ public class TransportSubmitAsyncSearchAction extends HandledTransportAction<Sub
|
||||||
TransportSearchAction searchAction,
|
TransportSearchAction searchAction,
|
||||||
BigArrays bigArrays
|
BigArrays bigArrays
|
||||||
) {
|
) {
|
||||||
super(SubmitAsyncSearchAction.NAME, transportService, actionFilters, SubmitAsyncSearchRequest::new);
|
super(
|
||||||
|
SubmitAsyncSearchAction.NAME,
|
||||||
|
transportService,
|
||||||
|
actionFilters,
|
||||||
|
SubmitAsyncSearchRequest::new,
|
||||||
|
EsExecutors.DIRECT_EXECUTOR_SERVICE
|
||||||
|
);
|
||||||
this.clusterService = clusterService;
|
this.clusterService = clusterService;
|
||||||
this.nodeClient = nodeClient;
|
this.nodeClient = nodeClient;
|
||||||
this.requestToAggReduceContextBuilder = (task, request) -> searchService.aggReduceContextBuilder(
|
this.requestToAggReduceContextBuilder = (task, request) -> searchService.aggReduceContextBuilder(
|
||||||
|
|
|
@ -12,6 +12,7 @@ import org.elasticsearch.action.ActionType;
|
||||||
import org.elasticsearch.action.support.ActionFilters;
|
import org.elasticsearch.action.support.ActionFilters;
|
||||||
import org.elasticsearch.action.support.HandledTransportAction;
|
import org.elasticsearch.action.support.HandledTransportAction;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
import org.elasticsearch.transport.TransportService;
|
import org.elasticsearch.transport.TransportService;
|
||||||
|
|
||||||
|
@ -33,7 +34,7 @@ public class TransportGetFeatureUsageAction extends HandledTransportAction<GetFe
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public TransportGetFeatureUsageAction(TransportService transportService, ActionFilters actionFilters, XPackLicenseState licenseState) {
|
public TransportGetFeatureUsageAction(TransportService transportService, ActionFilters actionFilters, XPackLicenseState licenseState) {
|
||||||
super(TYPE.name(), transportService, actionFilters, GetFeatureUsageRequest::new);
|
super(TYPE.name(), transportService, actionFilters, GetFeatureUsageRequest::new, EsExecutors.DIRECT_EXECUTOR_SERVICE);
|
||||||
this.licenseState = licenseState;
|
this.licenseState = licenseState;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -18,6 +18,7 @@ import org.elasticsearch.common.Strings;
|
||||||
import org.elasticsearch.common.bytes.BytesReference;
|
import org.elasticsearch.common.bytes.BytesReference;
|
||||||
import org.elasticsearch.common.io.stream.Writeable;
|
import org.elasticsearch.common.io.stream.Writeable;
|
||||||
import org.elasticsearch.common.regex.Regex;
|
import org.elasticsearch.common.regex.Regex;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.common.xcontent.LoggingDeprecationHandler;
|
import org.elasticsearch.common.xcontent.LoggingDeprecationHandler;
|
||||||
import org.elasticsearch.core.Nullable;
|
import org.elasticsearch.core.Nullable;
|
||||||
import org.elasticsearch.index.query.BoolQueryBuilder;
|
import org.elasticsearch.index.query.BoolQueryBuilder;
|
||||||
|
@ -69,7 +70,7 @@ public abstract class AbstractTransportGetResourcesAction<
|
||||||
Client client,
|
Client client,
|
||||||
NamedXContentRegistry xContentRegistry
|
NamedXContentRegistry xContentRegistry
|
||||||
) {
|
) {
|
||||||
super(actionName, transportService, actionFilters, request);
|
super(actionName, transportService, actionFilters, request, EsExecutors.DIRECT_EXECUTOR_SERVICE);
|
||||||
this.client = Objects.requireNonNull(client);
|
this.client = Objects.requireNonNull(client);
|
||||||
this.xContentRegistry = Objects.requireNonNull(xContentRegistry);
|
this.xContentRegistry = Objects.requireNonNull(xContentRegistry);
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,6 +11,7 @@ import org.elasticsearch.action.support.ActionFilters;
|
||||||
import org.elasticsearch.action.support.HandledTransportAction;
|
import org.elasticsearch.action.support.HandledTransportAction;
|
||||||
import org.elasticsearch.client.internal.node.NodeClient;
|
import org.elasticsearch.client.internal.node.NodeClient;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.license.License;
|
import org.elasticsearch.license.License;
|
||||||
import org.elasticsearch.license.LicenseService;
|
import org.elasticsearch.license.LicenseService;
|
||||||
import org.elasticsearch.license.LicenseUtils;
|
import org.elasticsearch.license.LicenseUtils;
|
||||||
|
@ -40,7 +41,7 @@ public class TransportXPackInfoAction extends HandledTransportAction<XPackInfoRe
|
||||||
LicenseService licenseService,
|
LicenseService licenseService,
|
||||||
NodeClient client
|
NodeClient client
|
||||||
) {
|
) {
|
||||||
super(XPackInfoAction.NAME, transportService, actionFilters, XPackInfoRequest::new);
|
super(XPackInfoAction.NAME, transportService, actionFilters, XPackInfoRequest::new, EsExecutors.DIRECT_EXECUTOR_SERVICE);
|
||||||
this.licenseService = licenseService;
|
this.licenseService = licenseService;
|
||||||
this.client = client;
|
this.client = client;
|
||||||
this.infoActions = infoActions();
|
this.infoActions = infoActions();
|
||||||
|
|
|
@ -9,6 +9,7 @@ package org.elasticsearch.xpack.core.action;
|
||||||
import org.elasticsearch.action.ActionListener;
|
import org.elasticsearch.action.ActionListener;
|
||||||
import org.elasticsearch.action.support.ActionFilters;
|
import org.elasticsearch.action.support.ActionFilters;
|
||||||
import org.elasticsearch.action.support.HandledTransportAction;
|
import org.elasticsearch.action.support.HandledTransportAction;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.protocol.xpack.XPackInfoRequest;
|
import org.elasticsearch.protocol.xpack.XPackInfoRequest;
|
||||||
import org.elasticsearch.protocol.xpack.XPackInfoResponse.FeatureSetsInfo.FeatureSet;
|
import org.elasticsearch.protocol.xpack.XPackInfoResponse.FeatureSetsInfo.FeatureSet;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
|
@ -23,7 +24,7 @@ import org.elasticsearch.transport.TransportService;
|
||||||
public abstract class XPackInfoFeatureTransportAction extends HandledTransportAction<XPackInfoRequest, XPackInfoFeatureResponse> {
|
public abstract class XPackInfoFeatureTransportAction extends HandledTransportAction<XPackInfoRequest, XPackInfoFeatureResponse> {
|
||||||
|
|
||||||
public XPackInfoFeatureTransportAction(String name, TransportService transportService, ActionFilters actionFilters) {
|
public XPackInfoFeatureTransportAction(String name, TransportService transportService, ActionFilters actionFilters) {
|
||||||
super(name, transportService, actionFilters, XPackInfoRequest::new);
|
super(name, transportService, actionFilters, XPackInfoRequest::new, EsExecutors.DIRECT_EXECUTOR_SERVICE);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected abstract String name();
|
protected abstract String name();
|
||||||
|
|
|
@ -40,7 +40,13 @@ public class TransportDeleteAsyncResultAction extends HandledTransportAction<Del
|
||||||
ThreadPool threadPool,
|
ThreadPool threadPool,
|
||||||
BigArrays bigArrays
|
BigArrays bigArrays
|
||||||
) {
|
) {
|
||||||
super(DeleteAsyncResultAction.NAME, transportService, actionFilters, DeleteAsyncResultRequest::new);
|
super(
|
||||||
|
DeleteAsyncResultAction.NAME,
|
||||||
|
transportService,
|
||||||
|
actionFilters,
|
||||||
|
DeleteAsyncResultRequest::new,
|
||||||
|
EsExecutors.DIRECT_EXECUTOR_SERVICE
|
||||||
|
);
|
||||||
this.transportService = transportService;
|
this.transportService = transportService;
|
||||||
this.clusterService = clusterService;
|
this.clusterService = clusterService;
|
||||||
AsyncTaskIndexService<?> store = new AsyncTaskIndexService<>(
|
AsyncTaskIndexService<?> store = new AsyncTaskIndexService<>(
|
||||||
|
|
|
@ -10,6 +10,7 @@ import org.elasticsearch.action.ActionListener;
|
||||||
import org.elasticsearch.action.support.ActionFilters;
|
import org.elasticsearch.action.support.ActionFilters;
|
||||||
import org.elasticsearch.action.support.HandledTransportAction;
|
import org.elasticsearch.action.support.HandledTransportAction;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
import org.elasticsearch.transport.TransportService;
|
import org.elasticsearch.transport.TransportService;
|
||||||
import org.elasticsearch.xpack.core.ssl.SSLService;
|
import org.elasticsearch.xpack.core.ssl.SSLService;
|
||||||
|
@ -27,7 +28,13 @@ public class TransportGetCertificateInfoAction extends HandledTransportAction<
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public TransportGetCertificateInfoAction(TransportService transportService, ActionFilters actionFilters, SSLService sslService) {
|
public TransportGetCertificateInfoAction(TransportService transportService, ActionFilters actionFilters, SSLService sslService) {
|
||||||
super(GetCertificateInfoAction.NAME, transportService, actionFilters, GetCertificateInfoAction.Request::new);
|
super(
|
||||||
|
GetCertificateInfoAction.NAME,
|
||||||
|
transportService,
|
||||||
|
actionFilters,
|
||||||
|
GetCertificateInfoAction.Request::new,
|
||||||
|
EsExecutors.DIRECT_EXECUTOR_SERVICE
|
||||||
|
);
|
||||||
this.sslService = sslService;
|
this.sslService = sslService;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -118,7 +118,7 @@ public class TransportTermsEnumAction extends HandledTransportAction<TermsEnumRe
|
||||||
Settings settings,
|
Settings settings,
|
||||||
IndexNameExpressionResolver indexNameExpressionResolver
|
IndexNameExpressionResolver indexNameExpressionResolver
|
||||||
) {
|
) {
|
||||||
super(TermsEnumAction.NAME, transportService, actionFilters, TermsEnumRequest::new);
|
super(TermsEnumAction.NAME, transportService, actionFilters, TermsEnumRequest::new, EsExecutors.DIRECT_EXECUTOR_SERVICE);
|
||||||
|
|
||||||
this.clusterService = clusterService;
|
this.clusterService = clusterService;
|
||||||
this.searchService = searchService;
|
this.searchService = searchService;
|
||||||
|
|
|
@ -19,6 +19,7 @@ import org.elasticsearch.client.internal.Client;
|
||||||
import org.elasticsearch.client.internal.ElasticsearchClient;
|
import org.elasticsearch.client.internal.ElasticsearchClient;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
import org.elasticsearch.common.settings.Settings;
|
import org.elasticsearch.common.settings.Settings;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.common.util.concurrent.EsRejectedExecutionException;
|
import org.elasticsearch.common.util.concurrent.EsRejectedExecutionException;
|
||||||
import org.elasticsearch.core.Tuple;
|
import org.elasticsearch.core.Tuple;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
|
@ -60,7 +61,7 @@ public class EnrichCoordinatorProxyAction extends ActionType<SearchResponse> {
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public TransportAction(TransportService transportService, ActionFilters actionFilters, Coordinator coordinator) {
|
public TransportAction(TransportService transportService, ActionFilters actionFilters, Coordinator coordinator) {
|
||||||
super(NAME, transportService, actionFilters, SearchRequest::new);
|
super(NAME, transportService, actionFilters, SearchRequest::new, EsExecutors.DIRECT_EXECUTOR_SERVICE);
|
||||||
this.coordinator = coordinator;
|
this.coordinator = coordinator;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -21,6 +21,7 @@ import org.elasticsearch.common.Randomness;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
import org.elasticsearch.common.io.stream.StreamInput;
|
import org.elasticsearch.common.io.stream.StreamInput;
|
||||||
import org.elasticsearch.common.io.stream.StreamOutput;
|
import org.elasticsearch.common.io.stream.StreamOutput;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
import org.elasticsearch.tasks.TaskAwareRequest;
|
import org.elasticsearch.tasks.TaskAwareRequest;
|
||||||
import org.elasticsearch.tasks.TaskCancelledException;
|
import org.elasticsearch.tasks.TaskCancelledException;
|
||||||
|
@ -116,7 +117,7 @@ public class InternalExecutePolicyAction extends ActionType<Response> {
|
||||||
ClusterService clusterService,
|
ClusterService clusterService,
|
||||||
EnrichPolicyExecutor policyExecutor
|
EnrichPolicyExecutor policyExecutor
|
||||||
) {
|
) {
|
||||||
super(NAME, transportService, actionFilters, Request::new);
|
super(NAME, transportService, actionFilters, Request::new, EsExecutors.DIRECT_EXECUTOR_SERVICE);
|
||||||
this.clusterService = clusterService;
|
this.clusterService = clusterService;
|
||||||
this.transportService = transportService;
|
this.transportService = transportService;
|
||||||
this.policyExecutor = policyExecutor;
|
this.policyExecutor = policyExecutor;
|
||||||
|
|
|
@ -11,6 +11,7 @@ import org.elasticsearch.action.ActionListener;
|
||||||
import org.elasticsearch.action.support.ActionFilters;
|
import org.elasticsearch.action.support.ActionFilters;
|
||||||
import org.elasticsearch.action.support.HandledTransportAction;
|
import org.elasticsearch.action.support.HandledTransportAction;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
import org.elasticsearch.transport.TransportService;
|
import org.elasticsearch.transport.TransportService;
|
||||||
import org.elasticsearch.xpack.application.analytics.AnalyticsEventIngestService;
|
import org.elasticsearch.xpack.application.analytics.AnalyticsEventIngestService;
|
||||||
|
@ -32,7 +33,13 @@ public class TransportPostAnalyticsEventAction extends HandledTransportAction<
|
||||||
ActionFilters actionFilters,
|
ActionFilters actionFilters,
|
||||||
AnalyticsEventIngestService eventEmitterService
|
AnalyticsEventIngestService eventEmitterService
|
||||||
) {
|
) {
|
||||||
super(PostAnalyticsEventAction.NAME, transportService, actionFilters, PostAnalyticsEventAction.Request::new);
|
super(
|
||||||
|
PostAnalyticsEventAction.NAME,
|
||||||
|
transportService,
|
||||||
|
actionFilters,
|
||||||
|
PostAnalyticsEventAction.Request::new,
|
||||||
|
EsExecutors.DIRECT_EXECUTOR_SERVICE
|
||||||
|
);
|
||||||
this.eventEmitterService = eventEmitterService;
|
this.eventEmitterService = eventEmitterService;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -14,6 +14,7 @@ import org.elasticsearch.action.support.master.AcknowledgedResponse;
|
||||||
import org.elasticsearch.client.internal.Client;
|
import org.elasticsearch.client.internal.Client;
|
||||||
import org.elasticsearch.cluster.service.ClusterService;
|
import org.elasticsearch.cluster.service.ClusterService;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
import org.elasticsearch.transport.TransportService;
|
import org.elasticsearch.transport.TransportService;
|
||||||
import org.elasticsearch.xpack.application.rules.QueryRulesIndexService;
|
import org.elasticsearch.xpack.application.rules.QueryRulesIndexService;
|
||||||
|
@ -28,7 +29,13 @@ public class TransportDeleteQueryRulesetAction extends HandledTransportAction<De
|
||||||
ActionFilters actionFilters,
|
ActionFilters actionFilters,
|
||||||
Client client
|
Client client
|
||||||
) {
|
) {
|
||||||
super(DeleteQueryRulesetAction.NAME, transportService, actionFilters, DeleteQueryRulesetAction.Request::new);
|
super(
|
||||||
|
DeleteQueryRulesetAction.NAME,
|
||||||
|
transportService,
|
||||||
|
actionFilters,
|
||||||
|
DeleteQueryRulesetAction.Request::new,
|
||||||
|
EsExecutors.DIRECT_EXECUTOR_SERVICE
|
||||||
|
);
|
||||||
this.systemIndexService = new QueryRulesIndexService(client, clusterService.getClusterSettings());
|
this.systemIndexService = new QueryRulesIndexService(client, clusterService.getClusterSettings());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -13,6 +13,7 @@ import org.elasticsearch.action.support.HandledTransportAction;
|
||||||
import org.elasticsearch.client.internal.Client;
|
import org.elasticsearch.client.internal.Client;
|
||||||
import org.elasticsearch.cluster.service.ClusterService;
|
import org.elasticsearch.cluster.service.ClusterService;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
import org.elasticsearch.transport.TransportService;
|
import org.elasticsearch.transport.TransportService;
|
||||||
import org.elasticsearch.xpack.application.rules.QueryRulesIndexService;
|
import org.elasticsearch.xpack.application.rules.QueryRulesIndexService;
|
||||||
|
@ -28,7 +29,13 @@ public class TransportGetQueryRulesetAction extends HandledTransportAction<GetQu
|
||||||
ActionFilters actionFilters,
|
ActionFilters actionFilters,
|
||||||
Client client
|
Client client
|
||||||
) {
|
) {
|
||||||
super(GetQueryRulesetAction.NAME, transportService, actionFilters, GetQueryRulesetAction.Request::new);
|
super(
|
||||||
|
GetQueryRulesetAction.NAME,
|
||||||
|
transportService,
|
||||||
|
actionFilters,
|
||||||
|
GetQueryRulesetAction.Request::new,
|
||||||
|
EsExecutors.DIRECT_EXECUTOR_SERVICE
|
||||||
|
);
|
||||||
this.systemIndexService = new QueryRulesIndexService(client, clusterService.getClusterSettings());
|
this.systemIndexService = new QueryRulesIndexService(client, clusterService.getClusterSettings());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -13,6 +13,7 @@ import org.elasticsearch.action.support.HandledTransportAction;
|
||||||
import org.elasticsearch.client.internal.Client;
|
import org.elasticsearch.client.internal.Client;
|
||||||
import org.elasticsearch.cluster.service.ClusterService;
|
import org.elasticsearch.cluster.service.ClusterService;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
import org.elasticsearch.transport.TransportService;
|
import org.elasticsearch.transport.TransportService;
|
||||||
import org.elasticsearch.xpack.application.rules.QueryRulesIndexService;
|
import org.elasticsearch.xpack.application.rules.QueryRulesIndexService;
|
||||||
|
@ -30,7 +31,13 @@ public class TransportListQueryRulesetsAction extends HandledTransportAction<
|
||||||
ActionFilters actionFilters,
|
ActionFilters actionFilters,
|
||||||
Client client
|
Client client
|
||||||
) {
|
) {
|
||||||
super(ListQueryRulesetsAction.NAME, transportService, actionFilters, ListQueryRulesetsAction.Request::new);
|
super(
|
||||||
|
ListQueryRulesetsAction.NAME,
|
||||||
|
transportService,
|
||||||
|
actionFilters,
|
||||||
|
ListQueryRulesetsAction.Request::new,
|
||||||
|
EsExecutors.DIRECT_EXECUTOR_SERVICE
|
||||||
|
);
|
||||||
this.systemIndexService = new QueryRulesIndexService(client, clusterService.getClusterSettings());
|
this.systemIndexService = new QueryRulesIndexService(client, clusterService.getClusterSettings());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -13,6 +13,7 @@ import org.elasticsearch.action.support.HandledTransportAction;
|
||||||
import org.elasticsearch.client.internal.Client;
|
import org.elasticsearch.client.internal.Client;
|
||||||
import org.elasticsearch.cluster.service.ClusterService;
|
import org.elasticsearch.cluster.service.ClusterService;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
import org.elasticsearch.transport.TransportService;
|
import org.elasticsearch.transport.TransportService;
|
||||||
import org.elasticsearch.xpack.application.rules.QueryRulesIndexService;
|
import org.elasticsearch.xpack.application.rules.QueryRulesIndexService;
|
||||||
|
@ -28,7 +29,13 @@ public class TransportPutQueryRulesetAction extends HandledTransportAction<PutQu
|
||||||
ActionFilters actionFilters,
|
ActionFilters actionFilters,
|
||||||
Client client
|
Client client
|
||||||
) {
|
) {
|
||||||
super(PutQueryRulesetAction.NAME, transportService, actionFilters, PutQueryRulesetAction.Request::new);
|
super(
|
||||||
|
PutQueryRulesetAction.NAME,
|
||||||
|
transportService,
|
||||||
|
actionFilters,
|
||||||
|
PutQueryRulesetAction.Request::new,
|
||||||
|
EsExecutors.DIRECT_EXECUTOR_SERVICE
|
||||||
|
);
|
||||||
this.systemIndexService = new QueryRulesIndexService(client, clusterService.getClusterSettings());
|
this.systemIndexService = new QueryRulesIndexService(client, clusterService.getClusterSettings());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -16,6 +16,7 @@ import org.elasticsearch.cluster.service.ClusterService;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
import org.elasticsearch.common.io.stream.NamedWriteableRegistry;
|
import org.elasticsearch.common.io.stream.NamedWriteableRegistry;
|
||||||
import org.elasticsearch.common.util.BigArrays;
|
import org.elasticsearch.common.util.BigArrays;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
import org.elasticsearch.transport.TransportService;
|
import org.elasticsearch.transport.TransportService;
|
||||||
import org.elasticsearch.xpack.application.search.SearchApplicationIndexService;
|
import org.elasticsearch.xpack.application.search.SearchApplicationIndexService;
|
||||||
|
@ -34,7 +35,13 @@ public class TransportDeleteSearchApplicationAction extends HandledTransportActi
|
||||||
NamedWriteableRegistry namedWriteableRegistry,
|
NamedWriteableRegistry namedWriteableRegistry,
|
||||||
BigArrays bigArrays
|
BigArrays bigArrays
|
||||||
) {
|
) {
|
||||||
super(DeleteSearchApplicationAction.NAME, transportService, actionFilters, DeleteSearchApplicationAction.Request::new);
|
super(
|
||||||
|
DeleteSearchApplicationAction.NAME,
|
||||||
|
transportService,
|
||||||
|
actionFilters,
|
||||||
|
DeleteSearchApplicationAction.Request::new,
|
||||||
|
EsExecutors.DIRECT_EXECUTOR_SERVICE
|
||||||
|
);
|
||||||
this.systemIndexService = new SearchApplicationIndexService(client, clusterService, namedWriteableRegistry, bigArrays);
|
this.systemIndexService = new SearchApplicationIndexService(client, clusterService, namedWriteableRegistry, bigArrays);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -16,6 +16,7 @@ import org.elasticsearch.common.inject.Inject;
|
||||||
import org.elasticsearch.common.io.stream.NamedWriteableRegistry;
|
import org.elasticsearch.common.io.stream.NamedWriteableRegistry;
|
||||||
import org.elasticsearch.common.logging.HeaderWarning;
|
import org.elasticsearch.common.logging.HeaderWarning;
|
||||||
import org.elasticsearch.common.util.BigArrays;
|
import org.elasticsearch.common.util.BigArrays;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
import org.elasticsearch.transport.TransportService;
|
import org.elasticsearch.transport.TransportService;
|
||||||
import org.elasticsearch.xpack.application.search.SearchApplication;
|
import org.elasticsearch.xpack.application.search.SearchApplication;
|
||||||
|
@ -36,7 +37,13 @@ public class TransportGetSearchApplicationAction extends HandledTransportAction<
|
||||||
NamedWriteableRegistry namedWriteableRegistry,
|
NamedWriteableRegistry namedWriteableRegistry,
|
||||||
BigArrays bigArrays
|
BigArrays bigArrays
|
||||||
) {
|
) {
|
||||||
super(GetSearchApplicationAction.NAME, transportService, actionFilters, GetSearchApplicationAction.Request::new);
|
super(
|
||||||
|
GetSearchApplicationAction.NAME,
|
||||||
|
transportService,
|
||||||
|
actionFilters,
|
||||||
|
GetSearchApplicationAction.Request::new,
|
||||||
|
EsExecutors.DIRECT_EXECUTOR_SERVICE
|
||||||
|
);
|
||||||
this.systemIndexService = new SearchApplicationIndexService(client, clusterService, namedWriteableRegistry, bigArrays);
|
this.systemIndexService = new SearchApplicationIndexService(client, clusterService, namedWriteableRegistry, bigArrays);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,7 @@ import org.elasticsearch.cluster.service.ClusterService;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
import org.elasticsearch.common.io.stream.NamedWriteableRegistry;
|
import org.elasticsearch.common.io.stream.NamedWriteableRegistry;
|
||||||
import org.elasticsearch.common.util.BigArrays;
|
import org.elasticsearch.common.util.BigArrays;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
import org.elasticsearch.transport.TransportService;
|
import org.elasticsearch.transport.TransportService;
|
||||||
import org.elasticsearch.xpack.application.search.SearchApplicationIndexService;
|
import org.elasticsearch.xpack.application.search.SearchApplicationIndexService;
|
||||||
|
@ -34,7 +35,13 @@ public class TransportListSearchApplicationAction extends HandledTransportAction
|
||||||
NamedWriteableRegistry namedWriteableRegistry,
|
NamedWriteableRegistry namedWriteableRegistry,
|
||||||
BigArrays bigArrays
|
BigArrays bigArrays
|
||||||
) {
|
) {
|
||||||
super(ListSearchApplicationAction.NAME, transportService, actionFilters, ListSearchApplicationAction.Request::new);
|
super(
|
||||||
|
ListSearchApplicationAction.NAME,
|
||||||
|
transportService,
|
||||||
|
actionFilters,
|
||||||
|
ListSearchApplicationAction.Request::new,
|
||||||
|
EsExecutors.DIRECT_EXECUTOR_SERVICE
|
||||||
|
);
|
||||||
this.systemIndexService = new SearchApplicationIndexService(client, clusterService, namedWriteableRegistry, bigArrays);
|
this.systemIndexService = new SearchApplicationIndexService(client, clusterService, namedWriteableRegistry, bigArrays);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -16,6 +16,7 @@ import org.elasticsearch.common.inject.Inject;
|
||||||
import org.elasticsearch.common.io.stream.NamedWriteableRegistry;
|
import org.elasticsearch.common.io.stream.NamedWriteableRegistry;
|
||||||
import org.elasticsearch.common.logging.HeaderWarning;
|
import org.elasticsearch.common.logging.HeaderWarning;
|
||||||
import org.elasticsearch.common.util.BigArrays;
|
import org.elasticsearch.common.util.BigArrays;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
import org.elasticsearch.transport.TransportService;
|
import org.elasticsearch.transport.TransportService;
|
||||||
import org.elasticsearch.xpack.application.search.SearchApplication;
|
import org.elasticsearch.xpack.application.search.SearchApplication;
|
||||||
|
@ -35,7 +36,13 @@ public class TransportPutSearchApplicationAction extends HandledTransportAction<
|
||||||
NamedWriteableRegistry namedWriteableRegistry,
|
NamedWriteableRegistry namedWriteableRegistry,
|
||||||
BigArrays bigArrays
|
BigArrays bigArrays
|
||||||
) {
|
) {
|
||||||
super(PutSearchApplicationAction.NAME, transportService, actionFilters, PutSearchApplicationAction.Request::new);
|
super(
|
||||||
|
PutSearchApplicationAction.NAME,
|
||||||
|
transportService,
|
||||||
|
actionFilters,
|
||||||
|
PutSearchApplicationAction.Request::new,
|
||||||
|
EsExecutors.DIRECT_EXECUTOR_SERVICE
|
||||||
|
);
|
||||||
this.systemIndexService = new SearchApplicationIndexService(client, clusterService, namedWriteableRegistry, bigArrays);
|
this.systemIndexService = new SearchApplicationIndexService(client, clusterService, namedWriteableRegistry, bigArrays);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -18,6 +18,7 @@ import org.elasticsearch.cluster.service.ClusterService;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
import org.elasticsearch.common.io.stream.NamedWriteableRegistry;
|
import org.elasticsearch.common.io.stream.NamedWriteableRegistry;
|
||||||
import org.elasticsearch.common.util.BigArrays;
|
import org.elasticsearch.common.util.BigArrays;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.logging.LogManager;
|
import org.elasticsearch.logging.LogManager;
|
||||||
import org.elasticsearch.logging.Logger;
|
import org.elasticsearch.logging.Logger;
|
||||||
import org.elasticsearch.script.ScriptService;
|
import org.elasticsearch.script.ScriptService;
|
||||||
|
@ -47,7 +48,13 @@ public class TransportQuerySearchApplicationAction extends HandledTransportActio
|
||||||
ScriptService scriptService,
|
ScriptService scriptService,
|
||||||
NamedXContentRegistry xContentRegistry
|
NamedXContentRegistry xContentRegistry
|
||||||
) {
|
) {
|
||||||
super(QuerySearchApplicationAction.NAME, transportService, actionFilters, SearchApplicationSearchRequest::new);
|
super(
|
||||||
|
QuerySearchApplicationAction.NAME,
|
||||||
|
transportService,
|
||||||
|
actionFilters,
|
||||||
|
SearchApplicationSearchRequest::new,
|
||||||
|
EsExecutors.DIRECT_EXECUTOR_SERVICE
|
||||||
|
);
|
||||||
this.client = client;
|
this.client = client;
|
||||||
this.templateService = new SearchApplicationTemplateService(scriptService, xContentRegistry);
|
this.templateService = new SearchApplicationTemplateService(scriptService, xContentRegistry);
|
||||||
this.systemIndexService = new SearchApplicationIndexService(client, clusterService, namedWriteableRegistry, bigArrays);
|
this.systemIndexService = new SearchApplicationIndexService(client, clusterService, namedWriteableRegistry, bigArrays);
|
||||||
|
|
|
@ -15,6 +15,7 @@ import org.elasticsearch.cluster.service.ClusterService;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
import org.elasticsearch.common.io.stream.NamedWriteableRegistry;
|
import org.elasticsearch.common.io.stream.NamedWriteableRegistry;
|
||||||
import org.elasticsearch.common.util.BigArrays;
|
import org.elasticsearch.common.util.BigArrays;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.logging.LogManager;
|
import org.elasticsearch.logging.LogManager;
|
||||||
import org.elasticsearch.logging.Logger;
|
import org.elasticsearch.logging.Logger;
|
||||||
import org.elasticsearch.script.ScriptService;
|
import org.elasticsearch.script.ScriptService;
|
||||||
|
@ -48,7 +49,13 @@ public class TransportRenderSearchApplicationQueryAction extends HandledTranspor
|
||||||
ScriptService scriptService,
|
ScriptService scriptService,
|
||||||
NamedXContentRegistry xContentRegistry
|
NamedXContentRegistry xContentRegistry
|
||||||
) {
|
) {
|
||||||
super(RenderSearchApplicationQueryAction.NAME, transportService, actionFilters, SearchApplicationSearchRequest::new);
|
super(
|
||||||
|
RenderSearchApplicationQueryAction.NAME,
|
||||||
|
transportService,
|
||||||
|
actionFilters,
|
||||||
|
SearchApplicationSearchRequest::new,
|
||||||
|
EsExecutors.DIRECT_EXECUTOR_SERVICE
|
||||||
|
);
|
||||||
this.systemIndexService = new SearchApplicationIndexService(client, clusterService, namedWriteableRegistry, bigArrays);
|
this.systemIndexService = new SearchApplicationIndexService(client, clusterService, namedWriteableRegistry, bigArrays);
|
||||||
this.templateService = new SearchApplicationTemplateService(scriptService, xContentRegistry);
|
this.templateService = new SearchApplicationTemplateService(scriptService, xContentRegistry);
|
||||||
}
|
}
|
||||||
|
|
|
@ -86,7 +86,7 @@ public class TransportEqlSearchAction extends HandledTransportAction<EqlSearchRe
|
||||||
Client client,
|
Client client,
|
||||||
BigArrays bigArrays
|
BigArrays bigArrays
|
||||||
) {
|
) {
|
||||||
super(EqlSearchAction.NAME, transportService, actionFilters, EqlSearchRequest::new);
|
super(EqlSearchAction.NAME, transportService, actionFilters, EqlSearchRequest::new, EsExecutors.DIRECT_EXECUTOR_SERVICE);
|
||||||
|
|
||||||
this.securityContext = XPackSettings.SECURITY_ENABLED.get(settings)
|
this.securityContext = XPackSettings.SECURITY_ENABLED.get(settings)
|
||||||
? new SecurityContext(settings, threadPool.getThreadContext())
|
? new SecurityContext(settings, threadPool.getThreadContext())
|
||||||
|
|
|
@ -15,6 +15,7 @@ import org.elasticsearch.action.support.HandledTransportAction;
|
||||||
import org.elasticsearch.client.internal.Client;
|
import org.elasticsearch.client.internal.Client;
|
||||||
import org.elasticsearch.client.internal.OriginSettingClient;
|
import org.elasticsearch.client.internal.OriginSettingClient;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
import org.elasticsearch.transport.TransportService;
|
import org.elasticsearch.transport.TransportService;
|
||||||
|
|
||||||
|
@ -27,7 +28,7 @@ public class TransportDeleteSecretAction extends HandledTransportAction<DeleteSe
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public TransportDeleteSecretAction(TransportService transportService, ActionFilters actionFilters, Client client) {
|
public TransportDeleteSecretAction(TransportService transportService, ActionFilters actionFilters, Client client) {
|
||||||
super(DeleteSecretAction.NAME, transportService, actionFilters, DeleteSecretRequest::new);
|
super(DeleteSecretAction.NAME, transportService, actionFilters, DeleteSecretRequest::new, EsExecutors.DIRECT_EXECUTOR_SERVICE);
|
||||||
this.client = new OriginSettingClient(client, FLEET_ORIGIN);
|
this.client = new OriginSettingClient(client, FLEET_ORIGIN);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -14,6 +14,7 @@ import org.elasticsearch.action.support.HandledTransportAction;
|
||||||
import org.elasticsearch.client.internal.Client;
|
import org.elasticsearch.client.internal.Client;
|
||||||
import org.elasticsearch.client.internal.OriginSettingClient;
|
import org.elasticsearch.client.internal.OriginSettingClient;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
import org.elasticsearch.transport.TransportService;
|
import org.elasticsearch.transport.TransportService;
|
||||||
|
|
||||||
|
@ -25,7 +26,7 @@ public class TransportGetSecretAction extends HandledTransportAction<GetSecretRe
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public TransportGetSecretAction(TransportService transportService, ActionFilters actionFilters, Client client) {
|
public TransportGetSecretAction(TransportService transportService, ActionFilters actionFilters, Client client) {
|
||||||
super(GetSecretAction.NAME, transportService, actionFilters, GetSecretRequest::new);
|
super(GetSecretAction.NAME, transportService, actionFilters, GetSecretRequest::new, EsExecutors.DIRECT_EXECUTOR_SERVICE);
|
||||||
this.client = new OriginSettingClient(client, FLEET_ORIGIN);
|
this.client = new OriginSettingClient(client, FLEET_ORIGIN);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -13,6 +13,7 @@ import org.elasticsearch.action.support.HandledTransportAction;
|
||||||
import org.elasticsearch.client.internal.Client;
|
import org.elasticsearch.client.internal.Client;
|
||||||
import org.elasticsearch.client.internal.OriginSettingClient;
|
import org.elasticsearch.client.internal.OriginSettingClient;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
import org.elasticsearch.transport.TransportService;
|
import org.elasticsearch.transport.TransportService;
|
||||||
|
|
||||||
|
@ -26,7 +27,7 @@ public class TransportPostSecretAction extends HandledTransportAction<PostSecret
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public TransportPostSecretAction(TransportService transportService, ActionFilters actionFilters, Client client) {
|
public TransportPostSecretAction(TransportService transportService, ActionFilters actionFilters, Client client) {
|
||||||
super(PostSecretAction.NAME, transportService, actionFilters, PostSecretRequest::new);
|
super(PostSecretAction.NAME, transportService, actionFilters, PostSecretRequest::new, EsExecutors.DIRECT_EXECUTOR_SERVICE);
|
||||||
this.client = new OriginSettingClient(client, FLEET_ORIGIN);
|
this.client = new OriginSettingClient(client, FLEET_ORIGIN);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -23,6 +23,7 @@ import org.elasticsearch.action.support.HandledTransportAction;
|
||||||
import org.elasticsearch.client.internal.node.NodeClient;
|
import org.elasticsearch.client.internal.node.NodeClient;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
import org.elasticsearch.common.util.CollectionUtils;
|
import org.elasticsearch.common.util.CollectionUtils;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.core.TimeValue;
|
import org.elasticsearch.core.TimeValue;
|
||||||
import org.elasticsearch.index.query.BoolQueryBuilder;
|
import org.elasticsearch.index.query.BoolQueryBuilder;
|
||||||
import org.elasticsearch.index.query.QueryBuilders;
|
import org.elasticsearch.index.query.QueryBuilders;
|
||||||
|
@ -97,7 +98,7 @@ public class TransportGraphExploreAction extends HandledTransportAction<GraphExp
|
||||||
ActionFilters actionFilters,
|
ActionFilters actionFilters,
|
||||||
XPackLicenseState licenseState
|
XPackLicenseState licenseState
|
||||||
) {
|
) {
|
||||||
super(GraphExploreAction.NAME, transportService, actionFilters, GraphExploreRequest::new);
|
super(GraphExploreAction.NAME, transportService, actionFilters, GraphExploreRequest::new, EsExecutors.DIRECT_EXECUTOR_SERVICE);
|
||||||
this.threadPool = threadPool;
|
this.threadPool = threadPool;
|
||||||
this.client = client;
|
this.client = client;
|
||||||
this.licenseState = licenseState;
|
this.licenseState = licenseState;
|
||||||
|
|
|
@ -12,6 +12,7 @@ import org.elasticsearch.action.ActionListener;
|
||||||
import org.elasticsearch.action.support.ActionFilters;
|
import org.elasticsearch.action.support.ActionFilters;
|
||||||
import org.elasticsearch.action.support.HandledTransportAction;
|
import org.elasticsearch.action.support.HandledTransportAction;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.common.util.iterable.Iterables;
|
import org.elasticsearch.common.util.iterable.Iterables;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
import org.elasticsearch.transport.TransportService;
|
import org.elasticsearch.transport.TransportService;
|
||||||
|
@ -36,7 +37,13 @@ public class TransportDeleteSamlServiceProviderAction extends HandledTransportAc
|
||||||
ActionFilters actionFilters,
|
ActionFilters actionFilters,
|
||||||
SamlServiceProviderIndex index
|
SamlServiceProviderIndex index
|
||||||
) {
|
) {
|
||||||
super(DeleteSamlServiceProviderAction.NAME, transportService, actionFilters, DeleteSamlServiceProviderRequest::new);
|
super(
|
||||||
|
DeleteSamlServiceProviderAction.NAME,
|
||||||
|
transportService,
|
||||||
|
actionFilters,
|
||||||
|
DeleteSamlServiceProviderRequest::new,
|
||||||
|
EsExecutors.DIRECT_EXECUTOR_SERVICE
|
||||||
|
);
|
||||||
this.index = index;
|
this.index = index;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -17,6 +17,7 @@ import org.elasticsearch.action.support.WriteRequest;
|
||||||
import org.elasticsearch.common.ValidationException;
|
import org.elasticsearch.common.ValidationException;
|
||||||
import org.elasticsearch.common.hash.MessageDigests;
|
import org.elasticsearch.common.hash.MessageDigests;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.common.util.iterable.Iterables;
|
import org.elasticsearch.common.util.iterable.Iterables;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
import org.elasticsearch.transport.TransportService;
|
import org.elasticsearch.transport.TransportService;
|
||||||
|
@ -56,7 +57,13 @@ public class TransportPutSamlServiceProviderAction extends HandledTransportActio
|
||||||
SamlIdentityProvider identityProvider,
|
SamlIdentityProvider identityProvider,
|
||||||
Clock clock
|
Clock clock
|
||||||
) {
|
) {
|
||||||
super(PutSamlServiceProviderAction.NAME, transportService, actionFilters, PutSamlServiceProviderRequest::new);
|
super(
|
||||||
|
PutSamlServiceProviderAction.NAME,
|
||||||
|
transportService,
|
||||||
|
actionFilters,
|
||||||
|
PutSamlServiceProviderRequest::new,
|
||||||
|
EsExecutors.DIRECT_EXECUTOR_SERVICE
|
||||||
|
);
|
||||||
this.index = index;
|
this.index = index;
|
||||||
this.identityProvider = identityProvider;
|
this.identityProvider = identityProvider;
|
||||||
this.clock = clock;
|
this.clock = clock;
|
||||||
|
|
|
@ -14,6 +14,7 @@ import org.elasticsearch.action.ActionListener;
|
||||||
import org.elasticsearch.action.support.ActionFilters;
|
import org.elasticsearch.action.support.ActionFilters;
|
||||||
import org.elasticsearch.action.support.HandledTransportAction;
|
import org.elasticsearch.action.support.HandledTransportAction;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.rest.RestStatus;
|
import org.elasticsearch.rest.RestStatus;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
import org.elasticsearch.transport.TransportService;
|
import org.elasticsearch.transport.TransportService;
|
||||||
|
@ -53,7 +54,13 @@ public class TransportSamlInitiateSingleSignOnAction extends HandledTransportAct
|
||||||
SamlFactory factory,
|
SamlFactory factory,
|
||||||
UserPrivilegeResolver privilegeResolver
|
UserPrivilegeResolver privilegeResolver
|
||||||
) {
|
) {
|
||||||
super(SamlInitiateSingleSignOnAction.NAME, transportService, actionFilters, SamlInitiateSingleSignOnRequest::new);
|
super(
|
||||||
|
SamlInitiateSingleSignOnAction.NAME,
|
||||||
|
transportService,
|
||||||
|
actionFilters,
|
||||||
|
SamlInitiateSingleSignOnRequest::new,
|
||||||
|
EsExecutors.DIRECT_EXECUTOR_SERVICE
|
||||||
|
);
|
||||||
this.securityContext = securityContext;
|
this.securityContext = securityContext;
|
||||||
this.identityProvider = idp;
|
this.identityProvider = idp;
|
||||||
this.samlFactory = factory;
|
this.samlFactory = factory;
|
||||||
|
|
|
@ -10,6 +10,7 @@ import org.elasticsearch.action.ActionListener;
|
||||||
import org.elasticsearch.action.support.ActionFilters;
|
import org.elasticsearch.action.support.ActionFilters;
|
||||||
import org.elasticsearch.action.support.HandledTransportAction;
|
import org.elasticsearch.action.support.HandledTransportAction;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
import org.elasticsearch.transport.TransportService;
|
import org.elasticsearch.transport.TransportService;
|
||||||
import org.elasticsearch.xpack.idp.saml.idp.SamlIdentityProvider;
|
import org.elasticsearch.xpack.idp.saml.idp.SamlIdentityProvider;
|
||||||
|
@ -28,7 +29,7 @@ public class TransportSamlMetadataAction extends HandledTransportAction<SamlMeta
|
||||||
SamlIdentityProvider idp,
|
SamlIdentityProvider idp,
|
||||||
SamlFactory factory
|
SamlFactory factory
|
||||||
) {
|
) {
|
||||||
super(SamlMetadataAction.NAME, transportService, actionFilters, SamlMetadataRequest::new);
|
super(SamlMetadataAction.NAME, transportService, actionFilters, SamlMetadataRequest::new, EsExecutors.DIRECT_EXECUTOR_SERVICE);
|
||||||
this.identityProvider = idp;
|
this.identityProvider = idp;
|
||||||
this.samlFactory = factory;
|
this.samlFactory = factory;
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,6 +10,7 @@ import org.elasticsearch.action.ActionListener;
|
||||||
import org.elasticsearch.action.support.ActionFilters;
|
import org.elasticsearch.action.support.ActionFilters;
|
||||||
import org.elasticsearch.action.support.HandledTransportAction;
|
import org.elasticsearch.action.support.HandledTransportAction;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
import org.elasticsearch.transport.TransportService;
|
import org.elasticsearch.transport.TransportService;
|
||||||
import org.elasticsearch.xpack.idp.saml.authn.SamlAuthnRequestValidator;
|
import org.elasticsearch.xpack.idp.saml.authn.SamlAuthnRequestValidator;
|
||||||
|
@ -30,7 +31,13 @@ public class TransportSamlValidateAuthnRequestAction extends HandledTransportAct
|
||||||
SamlIdentityProvider idp,
|
SamlIdentityProvider idp,
|
||||||
SamlFactory factory
|
SamlFactory factory
|
||||||
) {
|
) {
|
||||||
super(SamlValidateAuthnRequestAction.NAME, transportService, actionFilters, SamlValidateAuthnRequestRequest::new);
|
super(
|
||||||
|
SamlValidateAuthnRequestAction.NAME,
|
||||||
|
transportService,
|
||||||
|
actionFilters,
|
||||||
|
SamlValidateAuthnRequestRequest::new,
|
||||||
|
EsExecutors.DIRECT_EXECUTOR_SERVICE
|
||||||
|
);
|
||||||
this.identityProvider = idp;
|
this.identityProvider = idp;
|
||||||
this.samlFactory = factory;
|
this.samlFactory = factory;
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,6 +12,7 @@ import org.elasticsearch.action.ActionListener;
|
||||||
import org.elasticsearch.action.support.ActionFilters;
|
import org.elasticsearch.action.support.ActionFilters;
|
||||||
import org.elasticsearch.action.support.HandledTransportAction;
|
import org.elasticsearch.action.support.HandledTransportAction;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.inference.InferenceServiceRegistry;
|
import org.elasticsearch.inference.InferenceServiceRegistry;
|
||||||
import org.elasticsearch.rest.RestStatus;
|
import org.elasticsearch.rest.RestStatus;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
|
@ -33,7 +34,13 @@ public class TransportGetInferenceModelAction extends HandledTransportAction<
|
||||||
ModelRegistry modelRegistry,
|
ModelRegistry modelRegistry,
|
||||||
InferenceServiceRegistry serviceRegistry
|
InferenceServiceRegistry serviceRegistry
|
||||||
) {
|
) {
|
||||||
super(GetInferenceModelAction.NAME, transportService, actionFilters, GetInferenceModelAction.Request::new);
|
super(
|
||||||
|
GetInferenceModelAction.NAME,
|
||||||
|
transportService,
|
||||||
|
actionFilters,
|
||||||
|
GetInferenceModelAction.Request::new,
|
||||||
|
EsExecutors.DIRECT_EXECUTOR_SERVICE
|
||||||
|
);
|
||||||
this.modelRegistry = modelRegistry;
|
this.modelRegistry = modelRegistry;
|
||||||
this.serviceRegistry = serviceRegistry;
|
this.serviceRegistry = serviceRegistry;
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,6 +12,7 @@ import org.elasticsearch.action.ActionListener;
|
||||||
import org.elasticsearch.action.support.ActionFilters;
|
import org.elasticsearch.action.support.ActionFilters;
|
||||||
import org.elasticsearch.action.support.HandledTransportAction;
|
import org.elasticsearch.action.support.HandledTransportAction;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.inference.InferenceService;
|
import org.elasticsearch.inference.InferenceService;
|
||||||
import org.elasticsearch.inference.InferenceServiceRegistry;
|
import org.elasticsearch.inference.InferenceServiceRegistry;
|
||||||
import org.elasticsearch.inference.Model;
|
import org.elasticsearch.inference.Model;
|
||||||
|
@ -33,7 +34,7 @@ public class TransportInferenceAction extends HandledTransportAction<InferenceAc
|
||||||
ModelRegistry modelRegistry,
|
ModelRegistry modelRegistry,
|
||||||
InferenceServiceRegistry serviceRegistry
|
InferenceServiceRegistry serviceRegistry
|
||||||
) {
|
) {
|
||||||
super(InferenceAction.NAME, transportService, actionFilters, InferenceAction.Request::new);
|
super(InferenceAction.NAME, transportService, actionFilters, InferenceAction.Request::new, EsExecutors.DIRECT_EXECUTOR_SERVICE);
|
||||||
this.modelRegistry = modelRegistry;
|
this.modelRegistry = modelRegistry;
|
||||||
this.serviceRegistry = serviceRegistry;
|
this.serviceRegistry = serviceRegistry;
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,6 +16,7 @@ import org.elasticsearch.action.support.WriteRequest;
|
||||||
import org.elasticsearch.client.internal.Client;
|
import org.elasticsearch.client.internal.Client;
|
||||||
import org.elasticsearch.client.internal.OriginSettingClient;
|
import org.elasticsearch.client.internal.OriginSettingClient;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.index.IndexNotFoundException;
|
import org.elasticsearch.index.IndexNotFoundException;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
import org.elasticsearch.transport.TransportService;
|
import org.elasticsearch.transport.TransportService;
|
||||||
|
@ -29,7 +30,7 @@ public class TransportDeletePipelineAction extends HandledTransportAction<Delete
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public TransportDeletePipelineAction(TransportService transportService, ActionFilters actionFilters, Client client) {
|
public TransportDeletePipelineAction(TransportService transportService, ActionFilters actionFilters, Client client) {
|
||||||
super(DeletePipelineAction.NAME, transportService, actionFilters, DeletePipelineRequest::new);
|
super(DeletePipelineAction.NAME, transportService, actionFilters, DeletePipelineRequest::new, EsExecutors.DIRECT_EXECUTOR_SERVICE);
|
||||||
this.client = new OriginSettingClient(client, LOGSTASH_MANAGEMENT_ORIGIN);
|
this.client = new OriginSettingClient(client, LOGSTASH_MANAGEMENT_ORIGIN);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -23,6 +23,7 @@ import org.elasticsearch.client.internal.OriginSettingClient;
|
||||||
import org.elasticsearch.common.bytes.BytesReference;
|
import org.elasticsearch.common.bytes.BytesReference;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
import org.elasticsearch.common.util.Maps;
|
import org.elasticsearch.common.util.Maps;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.core.TimeValue;
|
import org.elasticsearch.core.TimeValue;
|
||||||
import org.elasticsearch.index.IndexNotFoundException;
|
import org.elasticsearch.index.IndexNotFoundException;
|
||||||
import org.elasticsearch.index.query.QueryBuilders;
|
import org.elasticsearch.index.query.QueryBuilders;
|
||||||
|
@ -57,7 +58,7 @@ public class TransportGetPipelineAction extends HandledTransportAction<GetPipeli
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public TransportGetPipelineAction(TransportService transportService, ActionFilters actionFilters, Client client) {
|
public TransportGetPipelineAction(TransportService transportService, ActionFilters actionFilters, Client client) {
|
||||||
super(GetPipelineAction.NAME, transportService, actionFilters, GetPipelineRequest::new);
|
super(GetPipelineAction.NAME, transportService, actionFilters, GetPipelineRequest::new, EsExecutors.DIRECT_EXECUTOR_SERVICE);
|
||||||
this.client = new OriginSettingClient(client, LOGSTASH_MANAGEMENT_ORIGIN);
|
this.client = new OriginSettingClient(client, LOGSTASH_MANAGEMENT_ORIGIN);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -14,6 +14,7 @@ import org.elasticsearch.action.support.WriteRequest;
|
||||||
import org.elasticsearch.client.internal.Client;
|
import org.elasticsearch.client.internal.Client;
|
||||||
import org.elasticsearch.client.internal.OriginSettingClient;
|
import org.elasticsearch.client.internal.OriginSettingClient;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
import org.elasticsearch.transport.TransportService;
|
import org.elasticsearch.transport.TransportService;
|
||||||
import org.elasticsearch.xpack.logstash.Logstash;
|
import org.elasticsearch.xpack.logstash.Logstash;
|
||||||
|
@ -26,7 +27,7 @@ public class TransportPutPipelineAction extends HandledTransportAction<PutPipeli
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public TransportPutPipelineAction(TransportService transportService, ActionFilters actionFilters, Client client) {
|
public TransportPutPipelineAction(TransportService transportService, ActionFilters actionFilters, Client client) {
|
||||||
super(PutPipelineAction.NAME, transportService, actionFilters, PutPipelineRequest::new);
|
super(PutPipelineAction.NAME, transportService, actionFilters, PutPipelineRequest::new, EsExecutors.DIRECT_EXECUTOR_SERVICE);
|
||||||
this.client = new OriginSettingClient(client, LOGSTASH_MANAGEMENT_ORIGIN);
|
this.client = new OriginSettingClient(client, LOGSTASH_MANAGEMENT_ORIGIN);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,7 @@ import org.elasticsearch.action.support.ActionFilters;
|
||||||
import org.elasticsearch.action.support.HandledTransportAction;
|
import org.elasticsearch.action.support.HandledTransportAction;
|
||||||
import org.elasticsearch.action.support.master.AcknowledgedResponse;
|
import org.elasticsearch.action.support.master.AcknowledgedResponse;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
import org.elasticsearch.transport.TransportService;
|
import org.elasticsearch.transport.TransportService;
|
||||||
import org.elasticsearch.xpack.core.common.notifications.AbstractAuditor;
|
import org.elasticsearch.xpack.core.common.notifications.AbstractAuditor;
|
||||||
|
@ -37,7 +38,13 @@ public class TransportAuditMlNotificationAction extends HandledTransportAction<A
|
||||||
InferenceAuditor inferenceAuditor,
|
InferenceAuditor inferenceAuditor,
|
||||||
SystemAuditor systemAuditor
|
SystemAuditor systemAuditor
|
||||||
) {
|
) {
|
||||||
super(AuditMlNotificationAction.NAME, transportService, actionFilters, AuditMlNotificationAction.Request::new);
|
super(
|
||||||
|
AuditMlNotificationAction.NAME,
|
||||||
|
transportService,
|
||||||
|
actionFilters,
|
||||||
|
AuditMlNotificationAction.Request::new,
|
||||||
|
EsExecutors.DIRECT_EXECUTOR_SERVICE
|
||||||
|
);
|
||||||
this.anomalyDetectionAuditor = anomalyDetectionAuditor;
|
this.anomalyDetectionAuditor = anomalyDetectionAuditor;
|
||||||
this.dfaAuditor = dfaAuditor;
|
this.dfaAuditor = dfaAuditor;
|
||||||
this.inferenceAuditor = inferenceAuditor;
|
this.inferenceAuditor = inferenceAuditor;
|
||||||
|
|
|
@ -17,6 +17,7 @@ import org.elasticsearch.action.support.HandledTransportAction;
|
||||||
import org.elasticsearch.cluster.service.ClusterService;
|
import org.elasticsearch.cluster.service.ClusterService;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
import org.elasticsearch.common.util.concurrent.AtomicArray;
|
import org.elasticsearch.common.util.concurrent.AtomicArray;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.persistent.PersistentTasksCustomMetadata;
|
import org.elasticsearch.persistent.PersistentTasksCustomMetadata;
|
||||||
import org.elasticsearch.persistent.PersistentTasksService;
|
import org.elasticsearch.persistent.PersistentTasksService;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
|
@ -52,7 +53,7 @@ public class TransportCancelJobModelSnapshotUpgradeAction extends HandledTranspo
|
||||||
ClusterService clusterService,
|
ClusterService clusterService,
|
||||||
PersistentTasksService persistentTasksService
|
PersistentTasksService persistentTasksService
|
||||||
) {
|
) {
|
||||||
super(CancelJobModelSnapshotUpgradeAction.NAME, transportService, actionFilters, Request::new);
|
super(CancelJobModelSnapshotUpgradeAction.NAME, transportService, actionFilters, Request::new, EsExecutors.DIRECT_EXECUTOR_SERVICE);
|
||||||
this.jobConfigProvider = jobConfigProvider;
|
this.jobConfigProvider = jobConfigProvider;
|
||||||
this.clusterService = clusterService;
|
this.clusterService = clusterService;
|
||||||
this.persistentTasksService = persistentTasksService;
|
this.persistentTasksService = persistentTasksService;
|
||||||
|
|
|
@ -13,6 +13,7 @@ import org.elasticsearch.action.support.HandledTransportAction;
|
||||||
import org.elasticsearch.action.support.master.AcknowledgedResponse;
|
import org.elasticsearch.action.support.master.AcknowledgedResponse;
|
||||||
import org.elasticsearch.client.internal.Client;
|
import org.elasticsearch.client.internal.Client;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.index.query.QueryBuilder;
|
import org.elasticsearch.index.query.QueryBuilder;
|
||||||
import org.elasticsearch.index.query.QueryBuilders;
|
import org.elasticsearch.index.query.QueryBuilders;
|
||||||
import org.elasticsearch.index.reindex.AbstractBulkByScrollRequest;
|
import org.elasticsearch.index.reindex.AbstractBulkByScrollRequest;
|
||||||
|
@ -43,7 +44,13 @@ public class TransportDeleteCalendarAction extends HandledTransportAction<Delete
|
||||||
JobManager jobManager,
|
JobManager jobManager,
|
||||||
JobResultsProvider jobResultsProvider
|
JobResultsProvider jobResultsProvider
|
||||||
) {
|
) {
|
||||||
super(DeleteCalendarAction.NAME, transportService, actionFilters, DeleteCalendarAction.Request::new);
|
super(
|
||||||
|
DeleteCalendarAction.NAME,
|
||||||
|
transportService,
|
||||||
|
actionFilters,
|
||||||
|
DeleteCalendarAction.Request::new,
|
||||||
|
EsExecutors.DIRECT_EXECUTOR_SERVICE
|
||||||
|
);
|
||||||
this.client = client;
|
this.client = client;
|
||||||
this.jobManager = jobManager;
|
this.jobManager = jobManager;
|
||||||
this.jobResultsProvider = jobResultsProvider;
|
this.jobResultsProvider = jobResultsProvider;
|
||||||
|
|
|
@ -19,6 +19,7 @@ import org.elasticsearch.action.support.WriteRequest;
|
||||||
import org.elasticsearch.action.support.master.AcknowledgedResponse;
|
import org.elasticsearch.action.support.master.AcknowledgedResponse;
|
||||||
import org.elasticsearch.client.internal.Client;
|
import org.elasticsearch.client.internal.Client;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.rest.RestStatus;
|
import org.elasticsearch.rest.RestStatus;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
import org.elasticsearch.transport.TransportService;
|
import org.elasticsearch.transport.TransportService;
|
||||||
|
@ -48,7 +49,13 @@ public class TransportDeleteCalendarEventAction extends HandledTransportAction<D
|
||||||
JobResultsProvider jobResultsProvider,
|
JobResultsProvider jobResultsProvider,
|
||||||
JobManager jobManager
|
JobManager jobManager
|
||||||
) {
|
) {
|
||||||
super(DeleteCalendarEventAction.NAME, transportService, actionFilters, DeleteCalendarEventAction.Request::new);
|
super(
|
||||||
|
DeleteCalendarEventAction.NAME,
|
||||||
|
transportService,
|
||||||
|
actionFilters,
|
||||||
|
DeleteCalendarEventAction.Request::new,
|
||||||
|
EsExecutors.DIRECT_EXECUTOR_SERVICE
|
||||||
|
);
|
||||||
this.client = client;
|
this.client = client;
|
||||||
this.jobResultsProvider = jobResultsProvider;
|
this.jobResultsProvider = jobResultsProvider;
|
||||||
this.jobManager = jobManager;
|
this.jobManager = jobManager;
|
||||||
|
|
|
@ -18,6 +18,7 @@ import org.elasticsearch.action.support.WriteRequest;
|
||||||
import org.elasticsearch.action.support.master.AcknowledgedResponse;
|
import org.elasticsearch.action.support.master.AcknowledgedResponse;
|
||||||
import org.elasticsearch.client.internal.Client;
|
import org.elasticsearch.client.internal.Client;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.rest.RestStatus;
|
import org.elasticsearch.rest.RestStatus;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
import org.elasticsearch.transport.TransportService;
|
import org.elasticsearch.transport.TransportService;
|
||||||
|
@ -48,7 +49,13 @@ public class TransportDeleteFilterAction extends HandledTransportAction<DeleteFi
|
||||||
Client client,
|
Client client,
|
||||||
JobConfigProvider jobConfigProvider
|
JobConfigProvider jobConfigProvider
|
||||||
) {
|
) {
|
||||||
super(DeleteFilterAction.NAME, transportService, actionFilters, DeleteFilterAction.Request::new);
|
super(
|
||||||
|
DeleteFilterAction.NAME,
|
||||||
|
transportService,
|
||||||
|
actionFilters,
|
||||||
|
DeleteFilterAction.Request::new,
|
||||||
|
EsExecutors.DIRECT_EXECUTOR_SERVICE
|
||||||
|
);
|
||||||
this.client = client;
|
this.client = client;
|
||||||
this.jobConfigProvider = jobConfigProvider;
|
this.jobConfigProvider = jobConfigProvider;
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,6 +24,7 @@ import org.elasticsearch.cluster.ClusterState;
|
||||||
import org.elasticsearch.cluster.service.ClusterService;
|
import org.elasticsearch.cluster.service.ClusterService;
|
||||||
import org.elasticsearch.common.Strings;
|
import org.elasticsearch.common.Strings;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.core.Tuple;
|
import org.elasticsearch.core.Tuple;
|
||||||
import org.elasticsearch.index.query.BoolQueryBuilder;
|
import org.elasticsearch.index.query.BoolQueryBuilder;
|
||||||
import org.elasticsearch.index.query.QueryBuilder;
|
import org.elasticsearch.index.query.QueryBuilder;
|
||||||
|
@ -81,7 +82,13 @@ public class TransportDeleteForecastAction extends HandledTransportAction<Delete
|
||||||
Client client,
|
Client client,
|
||||||
ClusterService clusterService
|
ClusterService clusterService
|
||||||
) {
|
) {
|
||||||
super(DeleteForecastAction.NAME, transportService, actionFilters, DeleteForecastAction.Request::new);
|
super(
|
||||||
|
DeleteForecastAction.NAME,
|
||||||
|
transportService,
|
||||||
|
actionFilters,
|
||||||
|
DeleteForecastAction.Request::new,
|
||||||
|
EsExecutors.DIRECT_EXECUTOR_SERVICE
|
||||||
|
);
|
||||||
this.client = client;
|
this.client = client;
|
||||||
this.clusterService = clusterService;
|
this.clusterService = clusterService;
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,6 +15,7 @@ import org.elasticsearch.action.support.HandledTransportAction;
|
||||||
import org.elasticsearch.action.support.master.AcknowledgedResponse;
|
import org.elasticsearch.action.support.master.AcknowledgedResponse;
|
||||||
import org.elasticsearch.client.internal.Client;
|
import org.elasticsearch.client.internal.Client;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
import org.elasticsearch.transport.TransportService;
|
import org.elasticsearch.transport.TransportService;
|
||||||
import org.elasticsearch.xpack.core.ml.action.DeleteModelSnapshotAction;
|
import org.elasticsearch.xpack.core.ml.action.DeleteModelSnapshotAction;
|
||||||
|
@ -48,7 +49,13 @@ public class TransportDeleteModelSnapshotAction extends HandledTransportAction<D
|
||||||
JobManager jobManager,
|
JobManager jobManager,
|
||||||
AnomalyDetectionAuditor auditor
|
AnomalyDetectionAuditor auditor
|
||||||
) {
|
) {
|
||||||
super(DeleteModelSnapshotAction.NAME, transportService, actionFilters, DeleteModelSnapshotAction.Request::new);
|
super(
|
||||||
|
DeleteModelSnapshotAction.NAME,
|
||||||
|
transportService,
|
||||||
|
actionFilters,
|
||||||
|
DeleteModelSnapshotAction.Request::new,
|
||||||
|
EsExecutors.DIRECT_EXECUTOR_SERVICE
|
||||||
|
);
|
||||||
this.client = client;
|
this.client = client;
|
||||||
this.jobManager = jobManager;
|
this.jobManager = jobManager;
|
||||||
this.jobResultsProvider = jobResultsProvider;
|
this.jobResultsProvider = jobResultsProvider;
|
||||||
|
|
|
@ -11,6 +11,7 @@ import org.elasticsearch.action.support.ActionFilters;
|
||||||
import org.elasticsearch.action.support.HandledTransportAction;
|
import org.elasticsearch.action.support.HandledTransportAction;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
import org.elasticsearch.common.unit.ByteSizeValue;
|
import org.elasticsearch.common.unit.ByteSizeValue;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
import org.elasticsearch.transport.TransportService;
|
import org.elasticsearch.transport.TransportService;
|
||||||
import org.elasticsearch.xpack.core.ml.action.EstimateModelMemoryAction;
|
import org.elasticsearch.xpack.core.ml.action.EstimateModelMemoryAction;
|
||||||
|
@ -42,7 +43,13 @@ public class TransportEstimateModelMemoryAction extends HandledTransportAction<
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public TransportEstimateModelMemoryAction(TransportService transportService, ActionFilters actionFilters) {
|
public TransportEstimateModelMemoryAction(TransportService transportService, ActionFilters actionFilters) {
|
||||||
super(EstimateModelMemoryAction.NAME, transportService, actionFilters, EstimateModelMemoryAction.Request::new);
|
super(
|
||||||
|
EstimateModelMemoryAction.NAME,
|
||||||
|
transportService,
|
||||||
|
actionFilters,
|
||||||
|
EstimateModelMemoryAction.Request::new,
|
||||||
|
EsExecutors.DIRECT_EXECUTOR_SERVICE
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -16,6 +16,7 @@ import org.elasticsearch.client.internal.ParentTaskAssigningClient;
|
||||||
import org.elasticsearch.cluster.service.ClusterService;
|
import org.elasticsearch.cluster.service.ClusterService;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
import org.elasticsearch.common.settings.Settings;
|
import org.elasticsearch.common.settings.Settings;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.search.builder.SearchSourceBuilder;
|
import org.elasticsearch.search.builder.SearchSourceBuilder;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
import org.elasticsearch.tasks.TaskId;
|
import org.elasticsearch.tasks.TaskId;
|
||||||
|
@ -53,7 +54,13 @@ public class TransportEvaluateDataFrameAction extends HandledTransportAction<
|
||||||
Client client,
|
Client client,
|
||||||
ClusterService clusterService
|
ClusterService clusterService
|
||||||
) {
|
) {
|
||||||
super(EvaluateDataFrameAction.NAME, transportService, actionFilters, EvaluateDataFrameAction.Request::new);
|
super(
|
||||||
|
EvaluateDataFrameAction.NAME,
|
||||||
|
transportService,
|
||||||
|
actionFilters,
|
||||||
|
EvaluateDataFrameAction.Request::new,
|
||||||
|
EsExecutors.DIRECT_EXECUTOR_SERVICE
|
||||||
|
);
|
||||||
this.threadPool = threadPool;
|
this.threadPool = threadPool;
|
||||||
this.client = client;
|
this.client = client;
|
||||||
this.securityContext = XPackSettings.SECURITY_ENABLED.get(settings)
|
this.securityContext = XPackSettings.SECURITY_ENABLED.get(settings)
|
||||||
|
|
|
@ -21,6 +21,7 @@ import org.elasticsearch.cluster.service.ClusterService;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
import org.elasticsearch.common.settings.Settings;
|
import org.elasticsearch.common.settings.Settings;
|
||||||
import org.elasticsearch.common.unit.ByteSizeValue;
|
import org.elasticsearch.common.unit.ByteSizeValue;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.core.Tuple;
|
import org.elasticsearch.core.Tuple;
|
||||||
import org.elasticsearch.license.LicenseUtils;
|
import org.elasticsearch.license.LicenseUtils;
|
||||||
import org.elasticsearch.license.XPackLicenseState;
|
import org.elasticsearch.license.XPackLicenseState;
|
||||||
|
@ -81,7 +82,13 @@ public class TransportExplainDataFrameAnalyticsAction extends HandledTransportAc
|
||||||
Settings settings,
|
Settings settings,
|
||||||
ThreadPool threadPool
|
ThreadPool threadPool
|
||||||
) {
|
) {
|
||||||
super(ExplainDataFrameAnalyticsAction.NAME, transportService, actionFilters, ExplainDataFrameAnalyticsAction.Request::new);
|
super(
|
||||||
|
ExplainDataFrameAnalyticsAction.NAME,
|
||||||
|
transportService,
|
||||||
|
actionFilters,
|
||||||
|
ExplainDataFrameAnalyticsAction.Request::new,
|
||||||
|
EsExecutors.DIRECT_EXECUTOR_SERVICE
|
||||||
|
);
|
||||||
this.transportService = transportService;
|
this.transportService = transportService;
|
||||||
this.clusterService = Objects.requireNonNull(clusterService);
|
this.clusterService = Objects.requireNonNull(clusterService);
|
||||||
this.client = Objects.requireNonNull(client);
|
this.client = Objects.requireNonNull(client);
|
||||||
|
|
|
@ -11,6 +11,7 @@ import org.elasticsearch.action.support.ActionFilters;
|
||||||
import org.elasticsearch.action.support.HandledTransportAction;
|
import org.elasticsearch.action.support.HandledTransportAction;
|
||||||
import org.elasticsearch.client.internal.Client;
|
import org.elasticsearch.client.internal.Client;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
import org.elasticsearch.transport.TransportService;
|
import org.elasticsearch.transport.TransportService;
|
||||||
import org.elasticsearch.xpack.core.ml.action.GetBucketsAction;
|
import org.elasticsearch.xpack.core.ml.action.GetBucketsAction;
|
||||||
|
@ -32,7 +33,7 @@ public class TransportGetBucketsAction extends HandledTransportAction<GetBuckets
|
||||||
JobManager jobManager,
|
JobManager jobManager,
|
||||||
Client client
|
Client client
|
||||||
) {
|
) {
|
||||||
super(GetBucketsAction.NAME, transportService, actionFilters, GetBucketsAction.Request::new);
|
super(GetBucketsAction.NAME, transportService, actionFilters, GetBucketsAction.Request::new, EsExecutors.DIRECT_EXECUTOR_SERVICE);
|
||||||
this.jobResultsProvider = jobResultsProvider;
|
this.jobResultsProvider = jobResultsProvider;
|
||||||
this.jobManager = jobManager;
|
this.jobManager = jobManager;
|
||||||
this.client = client;
|
this.client = client;
|
||||||
|
|
|
@ -11,6 +11,7 @@ import org.elasticsearch.action.support.ActionFilters;
|
||||||
import org.elasticsearch.action.support.HandledTransportAction;
|
import org.elasticsearch.action.support.HandledTransportAction;
|
||||||
import org.elasticsearch.common.Strings;
|
import org.elasticsearch.common.Strings;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
import org.elasticsearch.transport.TransportService;
|
import org.elasticsearch.transport.TransportService;
|
||||||
import org.elasticsearch.xpack.core.action.util.QueryPage;
|
import org.elasticsearch.xpack.core.action.util.QueryPage;
|
||||||
|
@ -39,7 +40,13 @@ public class TransportGetCalendarEventsAction extends HandledTransportAction<
|
||||||
JobResultsProvider jobResultsProvider,
|
JobResultsProvider jobResultsProvider,
|
||||||
JobConfigProvider jobConfigProvider
|
JobConfigProvider jobConfigProvider
|
||||||
) {
|
) {
|
||||||
super(GetCalendarEventsAction.NAME, transportService, actionFilters, GetCalendarEventsAction.Request::new);
|
super(
|
||||||
|
GetCalendarEventsAction.NAME,
|
||||||
|
transportService,
|
||||||
|
actionFilters,
|
||||||
|
GetCalendarEventsAction.Request::new,
|
||||||
|
EsExecutors.DIRECT_EXECUTOR_SERVICE
|
||||||
|
);
|
||||||
this.jobResultsProvider = jobResultsProvider;
|
this.jobResultsProvider = jobResultsProvider;
|
||||||
this.jobConfigProvider = jobConfigProvider;
|
this.jobConfigProvider = jobConfigProvider;
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,6 +11,7 @@ import org.elasticsearch.action.support.ActionFilters;
|
||||||
import org.elasticsearch.action.support.HandledTransportAction;
|
import org.elasticsearch.action.support.HandledTransportAction;
|
||||||
import org.elasticsearch.common.Strings;
|
import org.elasticsearch.common.Strings;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
import org.elasticsearch.transport.TransportService;
|
import org.elasticsearch.transport.TransportService;
|
||||||
import org.elasticsearch.xpack.core.action.util.PageParams;
|
import org.elasticsearch.xpack.core.action.util.PageParams;
|
||||||
|
@ -28,7 +29,13 @@ public class TransportGetCalendarsAction extends HandledTransportAction<GetCalen
|
||||||
ActionFilters actionFilters,
|
ActionFilters actionFilters,
|
||||||
JobResultsProvider jobResultsProvider
|
JobResultsProvider jobResultsProvider
|
||||||
) {
|
) {
|
||||||
super(GetCalendarsAction.NAME, transportService, actionFilters, GetCalendarsAction.Request::new);
|
super(
|
||||||
|
GetCalendarsAction.NAME,
|
||||||
|
transportService,
|
||||||
|
actionFilters,
|
||||||
|
GetCalendarsAction.Request::new,
|
||||||
|
EsExecutors.DIRECT_EXECUTOR_SERVICE
|
||||||
|
);
|
||||||
this.jobResultsProvider = jobResultsProvider;
|
this.jobResultsProvider = jobResultsProvider;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -13,6 +13,7 @@ import org.elasticsearch.client.internal.Client;
|
||||||
import org.elasticsearch.client.internal.ParentTaskAssigningClient;
|
import org.elasticsearch.client.internal.ParentTaskAssigningClient;
|
||||||
import org.elasticsearch.cluster.service.ClusterService;
|
import org.elasticsearch.cluster.service.ClusterService;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.tasks.CancellableTask;
|
import org.elasticsearch.tasks.CancellableTask;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
import org.elasticsearch.tasks.TaskId;
|
import org.elasticsearch.tasks.TaskId;
|
||||||
|
@ -37,7 +38,13 @@ public class TransportGetCategoriesAction extends HandledTransportAction<GetCate
|
||||||
JobManager jobManager,
|
JobManager jobManager,
|
||||||
ClusterService clusterService
|
ClusterService clusterService
|
||||||
) {
|
) {
|
||||||
super(GetCategoriesAction.NAME, transportService, actionFilters, GetCategoriesAction.Request::new);
|
super(
|
||||||
|
GetCategoriesAction.NAME,
|
||||||
|
transportService,
|
||||||
|
actionFilters,
|
||||||
|
GetCategoriesAction.Request::new,
|
||||||
|
EsExecutors.DIRECT_EXECUTOR_SERVICE
|
||||||
|
);
|
||||||
this.jobResultsProvider = jobResultsProvider;
|
this.jobResultsProvider = jobResultsProvider;
|
||||||
this.client = client;
|
this.client = client;
|
||||||
this.jobManager = jobManager;
|
this.jobManager = jobManager;
|
||||||
|
|
|
@ -16,6 +16,7 @@ import org.elasticsearch.client.internal.OriginSettingClient;
|
||||||
import org.elasticsearch.cluster.ClusterState;
|
import org.elasticsearch.cluster.ClusterState;
|
||||||
import org.elasticsearch.cluster.service.ClusterService;
|
import org.elasticsearch.cluster.service.ClusterService;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.persistent.PersistentTasksCustomMetadata;
|
import org.elasticsearch.persistent.PersistentTasksCustomMetadata;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
import org.elasticsearch.tasks.TaskId;
|
import org.elasticsearch.tasks.TaskId;
|
||||||
|
@ -55,7 +56,7 @@ public class TransportGetDatafeedsStatsAction extends HandledTransportAction<Req
|
||||||
JobResultsProvider jobResultsProvider,
|
JobResultsProvider jobResultsProvider,
|
||||||
Client client
|
Client client
|
||||||
) {
|
) {
|
||||||
super(GetDatafeedsStatsAction.NAME, transportService, actionFilters, Request::new);
|
super(GetDatafeedsStatsAction.NAME, transportService, actionFilters, Request::new, EsExecutors.DIRECT_EXECUTOR_SERVICE);
|
||||||
this.clusterService = clusterService;
|
this.clusterService = clusterService;
|
||||||
this.datafeedConfigProvider = datafeedConfigProvider;
|
this.datafeedConfigProvider = datafeedConfigProvider;
|
||||||
this.jobResultsProvider = jobResultsProvider;
|
this.jobResultsProvider = jobResultsProvider;
|
||||||
|
|
|
@ -11,6 +11,7 @@ import org.elasticsearch.action.support.ActionFilters;
|
||||||
import org.elasticsearch.action.support.HandledTransportAction;
|
import org.elasticsearch.action.support.HandledTransportAction;
|
||||||
import org.elasticsearch.client.internal.Client;
|
import org.elasticsearch.client.internal.Client;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
import org.elasticsearch.transport.TransportService;
|
import org.elasticsearch.transport.TransportService;
|
||||||
import org.elasticsearch.xpack.core.ml.action.GetInfluencersAction;
|
import org.elasticsearch.xpack.core.ml.action.GetInfluencersAction;
|
||||||
|
@ -32,7 +33,13 @@ public class TransportGetInfluencersAction extends HandledTransportAction<GetInf
|
||||||
Client client,
|
Client client,
|
||||||
JobManager jobManager
|
JobManager jobManager
|
||||||
) {
|
) {
|
||||||
super(GetInfluencersAction.NAME, transportService, actionFilters, GetInfluencersAction.Request::new);
|
super(
|
||||||
|
GetInfluencersAction.NAME,
|
||||||
|
transportService,
|
||||||
|
actionFilters,
|
||||||
|
GetInfluencersAction.Request::new,
|
||||||
|
EsExecutors.DIRECT_EXECUTOR_SERVICE
|
||||||
|
);
|
||||||
this.jobResultsProvider = jobResultsProvider;
|
this.jobResultsProvider = jobResultsProvider;
|
||||||
this.client = client;
|
this.client = client;
|
||||||
this.jobManager = jobManager;
|
this.jobManager = jobManager;
|
||||||
|
|
|
@ -14,6 +14,7 @@ import org.elasticsearch.action.support.HandledTransportAction;
|
||||||
import org.elasticsearch.cluster.service.ClusterService;
|
import org.elasticsearch.cluster.service.ClusterService;
|
||||||
import org.elasticsearch.common.Strings;
|
import org.elasticsearch.common.Strings;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsExecutors;
|
||||||
import org.elasticsearch.tasks.Task;
|
import org.elasticsearch.tasks.Task;
|
||||||
import org.elasticsearch.tasks.TaskId;
|
import org.elasticsearch.tasks.TaskId;
|
||||||
import org.elasticsearch.transport.TransportService;
|
import org.elasticsearch.transport.TransportService;
|
||||||
|
@ -41,7 +42,13 @@ public class TransportGetModelSnapshotsAction extends HandledTransportAction<
|
||||||
JobManager jobManager,
|
JobManager jobManager,
|
||||||
ClusterService clusterService
|
ClusterService clusterService
|
||||||
) {
|
) {
|
||||||
super(GetModelSnapshotsAction.NAME, transportService, actionFilters, GetModelSnapshotsAction.Request::new);
|
super(
|
||||||
|
GetModelSnapshotsAction.NAME,
|
||||||
|
transportService,
|
||||||
|
actionFilters,
|
||||||
|
GetModelSnapshotsAction.Request::new,
|
||||||
|
EsExecutors.DIRECT_EXECUTOR_SERVICE
|
||||||
|
);
|
||||||
this.jobResultsProvider = jobResultsProvider;
|
this.jobResultsProvider = jobResultsProvider;
|
||||||
this.jobManager = jobManager;
|
this.jobManager = jobManager;
|
||||||
this.clusterService = clusterService;
|
this.clusterService = clusterService;
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue