Skip to content

Deprecate & remove undocumented alternatives to the nodes hot threads API #52640

@DaveCTurner

Description

@DaveCTurner

The nodes hot threads API has some little-known synonyms:

@Override
public List<Route> routes() {
return List.of(
new Route(GET, "/_cluster/nodes/hotthreads"),
new Route(GET, "/_cluster/nodes/hot_threads"),
new Route(GET, "/_cluster/nodes/{nodeId}/hotthreads"),
new Route(GET, "/_cluster/nodes/{nodeId}/hot_threads"),
new Route(GET, "/_nodes/hotthreads"),
new Route(GET, "/_nodes/hot_threads"),
new Route(GET, "/_nodes/{nodeId}/hotthreads"),
new Route(GET, "/_nodes/{nodeId}/hot_threads"));
}

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions