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

Deprecate the 'local' parameter of /_cat/nodes #50499

Merged
merged 4 commits into from
Jan 2, 2020

Conversation

olegbonar
Copy link
Contributor

@olegbonar olegbonar commented Dec 26, 2019

The cat nodes API performs a ClusterStateAction then a NodesInfoAction.
Today it accepts the ?local parameter and passes this to the
ClusterStateAction but this parameter has no effect on the NodesInfoAction.
This is surprising, because GET _cat/nodes?local looks like it might be a
completely local call but in fact it still depends on every node in the
cluster.

This commit deprecates the ?local parameter on this API so that it can be
removed in 8.0.

Relates #50088

@dnhatn dnhatn added the :Core/Infra/Core Core issues without another label label Dec 26, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (:Core/Infra/Core)

@dnhatn
Copy link
Member

dnhatn commented Dec 26, 2019

@elasticmachine ok to test.

Copy link
Contributor

@DaveCTurner DaveCTurner left a comment

Choose a reason for hiding this comment

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

Good work @olegbonar. I left some suggestions re. docs and messages but nothing major.

@olegbonar olegbonar requested a review from DaveCTurner January 2, 2020 12:36
@DaveCTurner
Copy link
Contributor

@elasticmachine update branch

@DaveCTurner DaveCTurner merged commit 1c24921 into elastic:master Jan 2, 2020
Copy link
Contributor

@DaveCTurner DaveCTurner left a comment

Choose a reason for hiding this comment

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

LGTM

@DaveCTurner
Copy link
Contributor

Thanks @olegbonar, I've merged this and will backport it to 7.x shortly. Would you follow up with another PR to remove this parameter?

DaveCTurner pushed a commit that referenced this pull request Jan 2, 2020
The cat nodes API performs a `ClusterStateAction` then a `NodesInfoAction`.
Today it accepts the `?local` parameter and passes this to the
`ClusterStateAction` but this parameter has no effect on the `NodesInfoAction`.
This is surprising, because `GET _cat/nodes?local` looks like it might be a
completely local call but in fact it still depends on every node in the
cluster.

This commit deprecates the `?local` parameter on this API so that it can be
removed in 8.0.

Relates #50088
@DaveCTurner
Copy link
Contributor

Backported as 7539fbb.

DaveCTurner added a commit to DaveCTurner/elasticsearch that referenced this pull request Jan 2, 2020
In elastic#50499 we accidentally duplicated the docs for the `?local` parameter to the
`GET _cat/nodes` API. This commit removes the duplicate docs.
DaveCTurner added a commit that referenced this pull request Jan 2, 2020
In #50499 we accidentally duplicated the docs for the `?local` parameter to the
`GET _cat/nodes` API. This commit removes the duplicate docs.
@olegbonar olegbonar deleted the deprecate_cat_nodes_local branch January 2, 2020 18:58
DaveCTurner added a commit to DaveCTurner/elasticsearch that referenced this pull request Jan 3, 2020
The cat nodes API performs a `ClusterStateAction` then a `NodesInfoAction`.
Today it accepts the `?local` parameter and passes this to the
`ClusterStateAction` but this parameter has no effect on the `NodesInfoAction`.
This is surprising, because `GET _cat/nodes?local` looks like it might be a
completely local call but in fact it still depends on every node in the
cluster.

This parameter was deprecated in 7.x in elastic#50499 and this commit removes it.

Relates elastic#50088
@DaveCTurner
Copy link
Contributor

I opened #50594 to remove the parameter in 8.0.

DaveCTurner added a commit that referenced this pull request Jan 6, 2020
The cat nodes API performs a `ClusterStateAction` then a `NodesInfoAction`.
Today it accepts the `?local` parameter and passes this to the
`ClusterStateAction` but this parameter has no effect on the `NodesInfoAction`.
This is surprising, because `GET _cat/nodes?local` looks like it might be a
completely local call but in fact it still depends on every node in the
cluster.

This parameter was deprecated in 7.x in #50499 and this commit removes it.

Relates #50088
SivagurunathanV pushed a commit to SivagurunathanV/elasticsearch that referenced this pull request Jan 23, 2020
The cat nodes API performs a `ClusterStateAction` then a `NodesInfoAction`.
Today it accepts the `?local` parameter and passes this to the
`ClusterStateAction` but this parameter has no effect on the `NodesInfoAction`.
This is surprising, because `GET _cat/nodes?local` looks like it might be a
completely local call but in fact it still depends on every node in the
cluster.

This commit deprecates the `?local` parameter on this API so that it can be
removed in 8.0.

Relates elastic#50088
SivagurunathanV pushed a commit to SivagurunathanV/elasticsearch that referenced this pull request Jan 23, 2020
The cat nodes API performs a `ClusterStateAction` then a `NodesInfoAction`.
Today it accepts the `?local` parameter and passes this to the
`ClusterStateAction` but this parameter has no effect on the `NodesInfoAction`.
This is surprising, because `GET _cat/nodes?local` looks like it might be a
completely local call but in fact it still depends on every node in the
cluster.

This parameter was deprecated in 7.x in elastic#50499 and this commit removes it.

Relates elastic#50088
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants