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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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.

…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 8d5e0d3 to 1e26db8 Compare January 30, 2025 22:37
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.
1 participant