-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Recommission api level support #4604
Recommission api level support #4604
Conversation
Signed-off-by: pranikum <109206473+pranikum@users.noreply.github.com>
Signed-off-by: pranikum <109206473+pranikum@users.noreply.github.com>
Signed-off-by: pranikum <109206473+pranikum@users.noreply.github.com>
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: pranikum <109206473+pranikum@users.noreply.github.com>
Gradle Check (Jenkins) Run Completed with:
|
LGTM. Please merge this only after service level changes for recommission is merged |
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.
Looks like a lot of boiler plate code, which is absolutely ok but could you help understand:
- how this will be hooked up?
- Looks like the API/feature is experimental, do you plan on to gate it by a feature flag?
{ | ||
"cluster.delete_decommission_awareness": { | ||
"documentation": { | ||
"url": "https://opensearch.org/docs/latest/opensearch/rest-api/decommission/", |
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.
This link redirects to docs. Is the documentation work in progress? or Am I missing something?
...earch/action/admin/cluster/decommission/awareness/delete/DeleteDecommissionStateRequest.java
Show resolved
Hide resolved
...st/java/org/opensearch/rest/action/admin/cluster/RestDeleteDecommissionStateActionTests.java
Outdated
Show resolved
Hide resolved
Signed-off-by: pranikum <109206473+pranikum@users.noreply.github.com>
Signed-off-by: pranikum <109206473+pranikum@users.noreply.github.com>
Signed-off-by: pranikum <109206473+pranikum@users.noreply.github.com>
Signed-off-by: pranikum <109206473+pranikum@users.noreply.github.com>
Gradle Check (Jenkins) Run Completed with:
|
...arch/action/admin/cluster/decommission/awareness/delete/DeleteDecommissionStateResponse.java
Outdated
Show resolved
Hide resolved
ActionListener<DeleteDecommissionStateResponse> listener | ||
) { | ||
// TODO: Enable when service class change is merged | ||
logger.info("Received delete decommission Request"); |
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.
is it better to put this in debug log?
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.
Keeping it as info only. Don't expect call to decommission/recommission be called frequently. It will be a nice checkpoint to track.
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.
please make it more verbose with the request details. This PR is still WIP, please also rename the PR appropriately
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.
Added request object in the log.
rest-api-spec/src/main/resources/rest-api-spec/api/cluster.delete_decommission_awareness.json
Show resolved
Hide resolved
Signed-off-by: pranikum <109206473+pranikum@users.noreply.github.com>
Signed-off-by: pranikum <109206473+pranikum@users.noreply.github.com>
Signed-off-by: pranikum <109206473+pranikum@users.noreply.github.com>
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: pranikum <109206473+pranikum@users.noreply.github.com>
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: pranikum <109206473+pranikum@users.noreply.github.com>
Signed-off-by: pranikum <109206473+pranikum@users.noreply.github.com>
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: pranikum <109206473+pranikum@users.noreply.github.com>
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: pranikum <109206473+pranikum@users.noreply.github.com>
Signed-off-by: pranikum <109206473+pranikum@users.noreply.github.com>
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: pranikum <109206473+pranikum@users.noreply.github.com>
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: pranikum <109206473+pranikum@users.noreply.github.com>
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: pranikum <109206473+pranikum@users.noreply.github.com>
Gradle Check (Jenkins) Run Completed with:
|
* Add changes for Recommission API Signed-off-by: pranikum <109206473+pranikum@users.noreply.github.com> Signed-off-by: Rishab Nahata <rnnahata@amazon.com>
* Add DecommissionService and helper to execute awareness attribute decommissioning #4084 * Add APIs (GET/PUT) to decommission awareness attribute #4261 * Controlling discovery for decommissioned nodes #4590 * Fix decommission status update to non leader nodes #4800 * Remove redundant field from GetDecommissionStateResponse #4751 * Service Layer changes for Recommission API #4320 * Recommission api level support #4604 * Fix bug in AwarenessAttributeDecommissionIT #4822 Signed-off-by: Rishab Nahata <rnnahata@amazon.com>
* Add DecommissionService and helper to execute awareness attribute decommissioning opensearch-project#4084 * Add APIs (GET/PUT) to decommission awareness attribute opensearch-project#4261 * Controlling discovery for decommissioned nodes opensearch-project#4590 * Fix decommission status update to non leader nodes opensearch-project#4800 * Remove redundant field from GetDecommissionStateResponse opensearch-project#4751 * Service Layer changes for Recommission API opensearch-project#4320 * Recommission api level support opensearch-project#4604 * Fix bug in AwarenessAttributeDecommissionIT opensearch-project#4822 Signed-off-by: Rishab Nahata <rnnahata@amazon.com>
* Add DecommissionService and helper to execute awareness attribute decommissioning opensearch-project#4084 * Add APIs (GET/PUT) to decommission awareness attribute opensearch-project#4261 * Controlling discovery for decommissioned nodes opensearch-project#4590 * Fix decommission status update to non leader nodes opensearch-project#4800 * Remove redundant field from GetDecommissionStateResponse opensearch-project#4751 * Service Layer changes for Recommission API opensearch-project#4320 * Recommission api level support opensearch-project#4604 * Fix bug in AwarenessAttributeDecommissionIT opensearch-project#4822 Signed-off-by: Rishab Nahata <rnnahata@amazon.com>
* Awareness attribute decommission backports (#4970) * Add DecommissionService and helper to execute awareness attribute decommissioning #4084 * Add APIs (GET/PUT) to decommission awareness attribute #4261 * Controlling discovery for decommissioned nodes #4590 * Fix decommission status update to non leader nodes #4800 * Remove redundant field from GetDecommissionStateResponse #4751 * Service Layer changes for Recommission API #4320 * Recommission api level support #4604 * Fix bug in AwarenessAttributeDecommissionIT #4822 Signed-off-by: Rishab Nahata <rnnahata@amazon.com>
* Add changes for Recommission API Signed-off-by: pranikum <109206473+pranikum@users.noreply.github.com>
Description
This PR is taken from #4321.
Some checks were failing in above PR. Required to fix the previous commits. Which was creating issue. Hence created a separate PR.
This change contain REST API layer changes for Recommission API support.
This pr is dependent of Service layer changes. (#4320)
This change has some changes for the PR #4084
Issues Resolved
[List any issues this PR will resolve]
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.