Skip to content

GET _cat/shards?local and GET _cat/indices?local are not completely local #60718

Closed
@DaveCTurner

Description

@DaveCTurner

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions