Remove cluster state from /_cluster/reroute response (#114231)

Including the cluster state in responses to the `POST _cluster/state`
API  was deprecated in #90399 (v8.6.0) requiring callers to pass
`?metric=none` to avoid the deprecation warning. This commit adjusts the
behaviour as promised in v9 so that this API never returns the cluster
state, and deprecates the `?metric` parameter itself.

Closes #88978
This commit is contained in:
David Turner 2024-10-08 07:59:57 +01:00 committed by GitHub
parent 40bddafd92
commit 07c3acf1c0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 138 additions and 41 deletions

View file

@ -429,6 +429,7 @@ module org.elasticsearch.server {
org.elasticsearch.indices.IndicesFeatures,
org.elasticsearch.repositories.RepositoriesFeatures,
org.elasticsearch.action.admin.cluster.allocation.AllocationStatsFeatures,
org.elasticsearch.rest.action.admin.cluster.ClusterRerouteFeatures,
org.elasticsearch.index.mapper.MapperFeatures,
org.elasticsearch.ingest.IngestGeoIpFeatures,
org.elasticsearch.search.SearchFeatures,