Use valid REST version when determining capabilities (#123864)

If the rest api version is not specified, infer the correct one to use from the major versions present on the cluster, determined using features
This commit is contained in:
Simon Cooper 2025-03-07 08:18:24 +00:00 committed by GitHub
parent e3c953f799
commit 135b1658c2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 88 additions and 46 deletions

View file

@ -429,7 +429,7 @@ module org.elasticsearch.server {
provides org.elasticsearch.features.FeatureSpecification
with
org.elasticsearch.action.bulk.BulkFeatures,
org.elasticsearch.features.FeatureInfrastructureFeatures,
org.elasticsearch.features.InfrastructureFeatures,
org.elasticsearch.rest.action.admin.cluster.ClusterRerouteFeatures,
org.elasticsearch.index.mapper.MapperFeatures,
org.elasticsearch.index.IndexFeatures,