Skip to content

Conversation

@dakrone
Copy link
Member

@dakrone dakrone commented Mar 22, 2021

This commit adds the rest endpoints for the node shutdown API. These APIs are behind the
es.shutdown_feature_flag_enabled feature flag for now, as development is ongoing.

Currently these APIs do not do anything, returning immediately. We plan to implement them for real
in subsequent work.

Relates to #70338

This commit adds the rest endpoints for the node shutdown API. These APIs are behind the
`es.shutdown_feature_flag_enabled` feature flag for now, as development is ongoing.

Currently these APIs do not do anything, returning immediately. We plan to implement them for real
in subsequent work.

Relates to elastic#70338
@dakrone dakrone added :Core/Infra/Core Core issues without another label v8.0.0 v7.13.0 labels Mar 22, 2021
@dakrone dakrone requested a review from gwbrown March 22, 2021 22:10
@elasticmachine elasticmachine added the Team:Core/Infra Meta label for core/infra team label Mar 22, 2021
@elasticmachine
Copy link
Collaborator

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


@Override
public List<Route> routes() {
return List.of(new Route(RestRequest.Method.GET, "/_node/{name}/shutdown"), new Route(RestRequest.Method.GET, "/_node/shutdown"));
Copy link
Member

Choose a reason for hiding this comment

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

nit: doesn't /_node/{name}/shutdown conflict with /_node/shutdown since you cannot have a node named shutdown?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, we do this all over the place already, for example, in RestNodesStatsAction we have:

            new Route(GET, "/_nodes/stats"),
            new Route(GET, "/_nodes/{nodeId}/stats"),

@dakrone
Copy link
Member Author

dakrone commented Mar 23, 2021

@elasticmachine update branch

Copy link
Contributor

@gwbrown gwbrown left a comment

Choose a reason for hiding this comment

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

LGTM as a skeleton for this API. Looking forward to hooking it up!

@dakrone dakrone merged commit 5764a18 into elastic:master Mar 23, 2021
@dakrone dakrone deleted the decom-add-rest-scaffolding branch March 23, 2021 21:31
dakrone added a commit to dakrone/elasticsearch that referenced this pull request Mar 23, 2021
This commit adds the rest endpoints for the node shutdown API. These APIs are behind the
`es.shutdown_feature_flag_enabled` feature flag for now, as development is ongoing.

Currently these APIs do not do anything, returning immediately. We plan to implement them for real
in subsequent work.

Relates to elastic#70338
dakrone added a commit that referenced this pull request Mar 24, 2021
@gwbrown gwbrown added :Core/Infra/Node Lifecycle Node startup, bootstrapping, and shutdown and removed :Core/Infra/Core Core issues without another label labels Mar 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Core/Infra/Node Lifecycle Node startup, bootstrapping, and shutdown >non-issue Team:Core/Infra Meta label for core/infra team v7.13.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants