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

Remove the deprecated local parameter for _cat/indices #64868

Merged
merged 6 commits into from
Nov 16, 2020

Conversation

danhermann
Copy link
Contributor

@danhermann danhermann commented Nov 10, 2020

The cat indices API performs several actions including an IndicesStatsAction. Today it accepts the ?local parameter and passes it to the actions that support it but this parameter has no effect on the IndicesStatsAction. This can be surprising because GET _cat/indices?local looks like it might be a completely local call but in fact it still depends on every node in the cluster.

The local parameter was deprecated in 7.x (#62198) and this commit removes it for 8.x.

@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 Nov 10, 2020
Comment on lines 101 to 102
if (request.hasParam("local") && Version.CURRENT.major == Version.V_7_0_0.major + 1) {
throw new IllegalArgumentException("parameter [local] is not supported");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is unnecessary, as mentioned in #64867 (comment)

@danhermann
Copy link
Contributor Author

@elasticmachine update branch

Copy link
Member

@dakrone dakrone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@danhermann
Copy link
Contributor Author

@elasticmachine update branch

@danhermann
Copy link
Contributor Author

@elasticmachine test this please

@danhermann
Copy link
Contributor Author

@elasticmachine update branch

@danhermann danhermann merged commit 923b2b9 into elastic:master Nov 16, 2020
@danhermann danhermann deleted the remove_local_for_cat_indices branch November 16, 2020 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>breaking :Data Management/CAT APIs Text APIs behind /_cat Team:Data Management Meta label for data/management team v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants