The cat shards and cat indices APIs perform a ClusterStateAction then a IndicesStatsAction. They accept the ?local parameter and passes this to the ClusterStateAction but this parameter has no effect on the IndicesStatsAction. This is surprising, because GET _cat/shards?local and GET _cat/indices?local look like they might be completely local calls but in fact they still depend on every data node in the cluster.
I think the ?local parameter does not make sense on these APIs and we should remove it.
Relates #50088 which is the same issue for GET _cat/nodes.
The cat shards and cat indices APIs perform a
ClusterStateActionthen aIndicesStatsAction. They accept the?localparameter and passes this to theClusterStateActionbut this parameter has no effect on theIndicesStatsAction. This is surprising, becauseGET _cat/shards?localandGET _cat/indices?locallook like they might be completely local calls but in fact they still depend on every data node in the cluster.I think the
?localparameter does not make sense on these APIs and we should remove it.Relates #50088 which is the same issue for
GET _cat/nodes.