-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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 & remove undocumented alternatives to the nodes hot threads API #52640
Comments
Pinging @elastic/es-core-infra (:Core/Infra/REST API) |
I would like to work on this! Thanks! |
Thanks @muachilin, go ahead. Note that this'll take two PRs in sequence: the first to deprecate these endpoints and the second to remove them, and both should be opened against the master branch. We will take care of backporting the first. See e.g. #50499 for an example of a PR that deprecates things in the REST API, and note particularly that this includes a test showing that we do indeed log the right warnings when the deprecated API is used. |
Hi, @DaveCTurner I was looking to help on this issue but it looks as though the endpoints are already deprecated? |
I am already working on this to add tests and deprecate warnings for this file! |
@atmask Do you want to work on this? But I've claimed this issue |
@muachilin Ah I see, I didn't realize the issue was actively being taken care of! All yours! |
@atmask Thank you very much! |
Interesting observation @atmask, thanks. I had indeed not noticed that these endpoints were documented and deprecated, in the REST API spec (see #39063). We also need the deprecation warnings in the REST handler too since there's a risk that clients won't all notice them. For instance, as noted in #39063 (comment), Kibana's Console client ignores deprecations in the REST API spec but does respect deprecation warnings emitted by the handlers themselves. |
@DaveCTurner I see! I have added warnings and made some tests about this. The related PR is #52930. |
This was deprecated in 7.7.0 in #52930. @muachilin are you interested in proceeding with the removal of the deprecated endpoints in the master branch? |
@jasontedor Sure! |
Thank you :) |
Is this still being worked on? |
@muachilin Did you still want to work on removing the dedicated endpoints from master (8.0.0)? |
@jasontedor If he didn't, I'd like to work on it. |
@erickmp07 Thanks. Let's give @muachilin some time to reply. If there's no reply by this time tomorrow, it's yours. |
Hi! @erickmp07 @jasontedor I would like to work on it! Thank you :) |
@jasontedor I open a PR (#55109) to remove the deprecated end points for hot threads API. Thanks! |
The nodes hot threads API has some little-known synonyms:
elasticsearch/server/src/main/java/org/elasticsearch/rest/action/admin/cluster/RestNodesHotThreadsAction.java
Lines 43 to 54 in a11ccb8
These date back to its introduction in v0.20 but I do not think they have ever been documented. They seem unnecessary and I think we should remove them. There is of course a risk that someone out there is using one of these undocumented endpoints (perhaps due to a typo) and this is a breaking change so we should deprecate them first of course.
The text was updated successfully, but these errors were encountered: