Skip to content
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

[Backport Main] Add UnmodifiableOnRestore property to index.knn setting #2476

Conversation

anntians
Copy link
Contributor

Description

This PR builds on another PR opensearch-project/OpenSearch#16957. In the other PR we added a new Setting property UnmodifiableOnRestore to prevent settings from being modified on restore. So in this PR we're adding that new UnmodifiableOnRestore property to the index.knn setting to prevent it from being modified or removed on restore snapshot.

Related Issues

Resolves #2334
Also resolves Issue 17019 in Core Opensearch repository opensearch-project/OpenSearch#17019

Check List

  • New functionality includes testing.
  • New functionality has been documented.
  • API changes companion pull request created.
  • Commits are signed per the DCO using --signoff.
  • Public documentation issue/PR created.

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.

@kotwanikunal
Copy link
Member

@anntians Can you please rebase your code?

@jmazanec15
Copy link
Member

@anntians Can you rebase?

…roject#2445)

* Add UnmodifiableOnRestore property to index.knn setting

Signed-off-by: AnnTian Shao <[email protected]>

* Update tests with helper methods

Signed-off-by: AnnTian Shao <[email protected]>

* Update test names

Signed-off-by: AnnTian Shao <[email protected]>

* Add to changeLog and fixes to tests

Signed-off-by: AnnTian Shao <[email protected]>

---------

Signed-off-by: AnnTian Shao <[email protected]>
Co-authored-by: AnnTian Shao <[email protected]>
(cherry picked from commit 1d2c4c0)
@anntians anntians force-pushed the backport/backport-2445-to-main branch from 1e26db8 to dd403a1 Compare February 25, 2025 17:24
@anntians anntians requested a review from Vikasht34 as a code owner February 25, 2025 17:24
CHANGELOG.md Outdated
@@ -22,6 +22,18 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
### Features
### Enhancements
### Bug Fixes
* Fixing the bug when a segment has no vector field present for disk based vector search (#2282)[https://github.com/opensearch-project/k-NN/pull/2282]
Copy link
Member

Choose a reason for hiding this comment

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

Can you fix the changelog ?

@anntians anntians force-pushed the backport/backport-2445-to-main branch 2 times, most recently from 2b8bcc8 to f4b8d37 Compare February 25, 2025 21:27
Copy link
Member

@jmazanec15 jmazanec15 left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: AnnTian Shao <[email protected]>
@anntians anntians force-pushed the backport/backport-2445-to-main branch from f4b8d37 to ac33c13 Compare February 25, 2025 22:48
@naveentatikonda naveentatikonda merged commit 469e6a7 into opensearch-project:main Feb 26, 2025
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG]Block updation of knn.enabled flag.
4 participants