Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
DaveCTurner opened this issue Aug 5, 2020 · 6 comments
Closed
Labels
>bug :Data Management/CAT APIs Text APIs behind /_cat Team:Data Management Meta label for data/management team

Comments

@DaveCTurner
Copy link
Contributor

DaveCTurner commented Aug 5, 2020

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.

@DaveCTurner DaveCTurner added >bug :Data Management/CAT APIs Text APIs behind /_cat labels Aug 5, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-features (:Core/Features/CAT APIs)

@elasticmachine elasticmachine added the Team:Data Management Meta label for data/management team label Aug 5, 2020
@boicehuang
Copy link
Contributor

Do _cat/indices?local have the same behavior?

@DaveCTurner
Copy link
Contributor Author

Yes, GET _cat/indices?local is also nonlocal as it also uses a cluster-wide indices stats request.

@DaveCTurner DaveCTurner changed the title GET _cat/shards?local is not completely local GET _cat/shards?local and GET _cat/indices?local are not completely local Aug 21, 2020
@boicehuang
Copy link
Contributor

boicehuang commented Aug 21, 2020

May I work on this one? Any hints are appreciated.

@DaveCTurner
Copy link
Contributor Author

Sure, go ahead. See #50088 for a good example of deprecating and removing a REST parameter like this.

@danhermann
Copy link
Contributor

The local parameters have been deprecated in 7.x and removed for 8.x.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Data Management/CAT APIs Text APIs behind /_cat Team:Data Management Meta label for data/management team
Projects
None yet
Development

No branches or pull requests

4 participants