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:
Niels Bauman 2025-03-03 13:37:27 +01:00 committed by GitHub
parent 2fcb23a87e
commit afff39ed5c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
52 changed files with 122 additions and 83 deletions

View file

@ -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[] { "*" }
);