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

@ -95,7 +95,7 @@ Changing allocation id V8QXk-QXSZinZMT-NvEq4w to tjm9Ve6uTBewVFAlfUMWjA
You should run the following command to allocate this shard:
POST /_cluster/reroute?metric=none
POST /_cluster/reroute
{
"commands" : [
{