Open romain-chanu opened 1 month ago
Pinging @elastic/es-distributed (Team:Distributed)
This is true, but in fact the clients team have indicated a preference for maintaining the structure of responses no matter what, rather than having fields which appear or disappear depending on context or response content. So I think the fix here would be to prefer to output all the fields in the response even when empty.
Elasticsearch Version
8.14.3
Installed Plugins
No response
Java Version
bundled
OS Version
N.A
Problem Description
Get snapshot API with
verbose
=false
returns an emptydata_streams
object.This is rather confusing and inconsistent with the overall behaviour (e.g
feature_states
is not reported whenverbose
=false
).Omitting the
data_streams
object whenverbose
=false
would be more logical (similar to thefeature_states
object)It is also not documented that
verbose
=true
actually returns the data streams and feature states information as well:Steps to Reproduce
Create a cluster version 8.14.3 in ESS
Take a snapshot and run the Get snapshot API with
verbose
= falseObserve that the
data_streams
object is empty.With
verbose
=true
:Logs (if relevant)
No response