-
Notifications
You must be signed in to change notification settings - Fork 132
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
Fixed a bug to prevent updating index.knn setting after index creation #2348
Conversation
Signed-off-by: AnnTian Shao <[email protected]>
Signed-off-by: AnnTian Shao <[email protected]>
Signed-off-by: Tommy Shao <[email protected]>
Signed-off-by: Tommy Shao <[email protected]> Signed-off-by: AnnTian Shao <[email protected]>
…ng after version upgrade Signed-off-by: Tommy Shao <[email protected]>
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.
@shatejas / @navneet1v / @Vikasht34 - Can you please review this one? |
The backport to
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-2.x 2.x
# Navigate to the new working tree
cd .worktrees/backport-2.x
# Create a new branch
git switch --create backport/backport-2348-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 a875eb866dcc16086d1410b1cceae88e8cbfc9c5
# Push it to GitHub
git push --set-upstream origin backport/backport-2348-to-2.x
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-2.x Then, create a pull request where the |
@anntians can you please port this change for 2.x branch and create a new PR |
opensearch-project#2348) * Change index.knn setting to FINAL, immutable after index creation Signed-off-by: AnnTian Shao <[email protected]> * Add to ChangeLog the description of bug fix Signed-off-by: AnnTian Shao <[email protected]> * Add restart upgrade test for checking immutability of knn.index setting after version upgrade Signed-off-by: Tommy Shao <[email protected]> --------- Signed-off-by: AnnTian Shao <[email protected]> Signed-off-by: Tommy Shao <[email protected]> Signed-off-by: Tommy Shao <[email protected]> Co-authored-by: AnnTian Shao <[email protected]> (cherry picked from commit a875eb8)
opensearch-project#2348) * Change index.knn setting to FINAL, immutable after index creation Signed-off-by: AnnTian Shao <[email protected]> * Add to ChangeLog the description of bug fix Signed-off-by: AnnTian Shao <[email protected]> * Add restart upgrade test for checking immutability of knn.index setting after version upgrade Signed-off-by: Tommy Shao <[email protected]> --------- Signed-off-by: AnnTian Shao <[email protected]> Signed-off-by: Tommy Shao <[email protected]> Signed-off-by: Tommy Shao <[email protected]> Co-authored-by: AnnTian Shao <[email protected]> (cherry picked from commit a875eb8) Signed-off-by: AnnTian Shao <[email protected]>
opensearch-project#2348) * Change index.knn setting to FINAL, immutable after index creation Signed-off-by: AnnTian Shao <[email protected]> * Add to ChangeLog the description of bug fix Signed-off-by: AnnTian Shao <[email protected]> * Add restart upgrade test for checking immutability of knn.index setting after version upgrade Signed-off-by: Tommy Shao <[email protected]> --------- Signed-off-by: AnnTian Shao <[email protected]> Signed-off-by: Tommy Shao <[email protected]> Signed-off-by: Tommy Shao <[email protected]> Co-authored-by: AnnTian Shao <[email protected]> (cherry picked from commit a875eb8)
opensearch-project#2348) * Change index.knn setting to FINAL, immutable after index creation Signed-off-by: AnnTian Shao <[email protected]> * Add to ChangeLog the description of bug fix Signed-off-by: AnnTian Shao <[email protected]> * Add restart upgrade test for checking immutability of knn.index setting after version upgrade Signed-off-by: Tommy Shao <[email protected]> --------- Signed-off-by: AnnTian Shao <[email protected]> Signed-off-by: Tommy Shao <[email protected]> Signed-off-by: Tommy Shao <[email protected]> Co-authored-by: AnnTian Shao <[email protected]> (cherry picked from commit a875eb8)
opensearch-project#2348) * Change index.knn setting to FINAL, immutable after index creation Signed-off-by: AnnTian Shao <[email protected]> * Add to ChangeLog the description of bug fix Signed-off-by: AnnTian Shao <[email protected]> * Add restart upgrade test for checking immutability of knn.index setting after version upgrade Signed-off-by: Tommy Shao <[email protected]> --------- Signed-off-by: AnnTian Shao <[email protected]> Signed-off-by: Tommy Shao <[email protected]> Signed-off-by: Tommy Shao <[email protected]> Co-authored-by: AnnTian Shao <[email protected]> (cherry picked from commit a875eb8) Signed-off-by: AnnTian Shao <[email protected]>
Description
This change prevents customers to update index.knn setting after creating an index. Previously, there was a loophole to migrate a live k-nn index from hot to UW by closing the index, setting index.knn to false, opening the index, and migrating to UW. However, migrating k-nn indices to UW nodes is not supported. Thus, this PR updates index.knn to be FINAL and immutable after index creation.
Related Issues
Resolves #2334
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.