-
Notifications
You must be signed in to change notification settings - Fork 111
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
Skipping Execution based on Cluster Service #1219
Skipping Execution based on Cluster Service #1219
Conversation
f2d80dd
to
8909212
Compare
src/main/kotlin/org/opensearch/indexmanagement/indexstatemanagement/SkipExecution.kt
Show resolved
Hide resolved
9aaf167
to
c2437eb
Compare
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.
Change LGTM! Please check if failing tests in build are related. Make sure build is green.
@vikasvb90 doesn't look like PR related, the BWC workflow has been failing for other PRs (open and merged) as well. |
c2437eb
to
8ff686b
Compare
@vikasvb90 @bowenlan-amzn please let me know if there are more comments. If it looks good, we can merge it! |
8ff686b
to
6519622
Compare
src/main/kotlin/org/opensearch/indexmanagement/indexstatemanagement/SkipExecution.kt
Show resolved
Hide resolved
src/main/kotlin/org/opensearch/indexmanagement/indexstatemanagement/SkipExecution.kt
Outdated
Show resolved
Hide resolved
6519622
to
a70d609
Compare
Signed-off-by: Sarthak Aggarwal <[email protected]>
a70d609
to
9e70d87
Compare
The backport to
To backport manually, run these commands in your terminal: # Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/index-management/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/index-management/backport-2.x
# Create a new branch
git switch --create backport/backport-1219-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 d6da55cdcb9ac96163644f0bfa295d56db5fd915
# Push it to GitHub
git push --set-upstream origin backport/backport-1219-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/index-management/backport-2.x Then, create a pull request where the |
Signed-off-by: Sarthak Aggarwal <[email protected]> (cherry picked from commit d6da55c)
Signed-off-by: Sarthak Aggarwal <[email protected]> (cherry picked from commit d6da55c)
* skipping execution based on cluster service (#1219) Signed-off-by: Sarthak Aggarwal <[email protected]> (cherry picked from commit d6da55c) * compile time fixes Signed-off-by: Sarthak Aggarwal <[email protected]> --------- Signed-off-by: Sarthak Aggarwal <[email protected]>
Description
Currently, we make expensive node infos calls to verify if all the nodes are on the same version or not, before we execute index-management actions.
With this change, we would be able to avoid that broadcast request, and rely on the cluster service to provide us with the min and max versions across the cluster.
Related Issues
Resolves #1075
Check List
--signoff
.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.
Testing
Cluster Configuration:
Case 1: Mixed Cluster
Both nodes with different versions are present in the cluster.
It is visible that the skip execution scheduler is able to check the cluster state multiple times to verify that different nodes exist.
Created a rollover policy with mixed cluster.
Case 2: Mixed Cluster
Stopping Data Node: OS v2.12
Rollover was successful once only one node was present or all the nodes were of the same OS version.