mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-24 15:17:30 -04:00
Run XPack usage actions on local node (#122933)
These actions solely need the cluster state, they can run on any node. Relates #101805
This commit is contained in:
parent
2fcb23a87e
commit
afff39ed5c
52 changed files with 122 additions and 83 deletions
|
@ -78,7 +78,7 @@ public class EnterpriseSearchUsageTransportAction extends XPackUsageFeatureTrans
|
|||
}
|
||||
|
||||
@Override
|
||||
protected void masterOperation(
|
||||
protected void localClusterStateOperation(
|
||||
Task task,
|
||||
XPackUsageRequest request,
|
||||
ClusterState state,
|
||||
|
@ -153,7 +153,7 @@ public class EnterpriseSearchUsageTransportAction extends XPackUsageFeatureTrans
|
|||
|
||||
// Step 1: Fetch analytics collections count
|
||||
GetAnalyticsCollectionAction.Request analyticsCollectionsCountRequest = new GetAnalyticsCollectionAction.Request(
|
||||
request.masterNodeTimeout(),
|
||||
request.masterTimeout(),
|
||||
new String[] { "*" }
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue