-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Add REST scaffolding for node shutdown API #70697
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
Conversation
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
|
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")); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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"),|
@elasticmachine update branch |
gwbrown
left a comment
There was a problem hiding this 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!
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
Co-authored-by: Elastic Machine <[email protected]>
This commit adds the rest endpoints for the node shutdown API. These APIs are behind the
es.shutdown_feature_flag_enabledfeature 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