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

[BUG]Block updation of knn.enabled flag. #2334

Open
harishbhakuni opened this issue Dec 13, 2024 · 0 comments
Open

[BUG]Block updation of knn.enabled flag. #2334

harishbhakuni opened this issue Dec 13, 2024 · 0 comments
Labels
bug Something isn't working untriaged

Comments

@harishbhakuni
Copy link

What is the bug?
Today, user can update knn.enabled flag even after an index is created which should not be allowed. Users can close the index, update this setting and open the index back which is not an expected behaviour. We have seen some issues due to this recently as well during version upgrades to 2.17.
Also, user can today restore an existing index with knn.enabled setting as true as an index with knn.enabled setting as false. we need to block this setting from getting updated during snapshot restore as well.

How can one reproduce the bug?
Steps to reproduce the behavior:

  1. Create a kNN enabled index.
  2. Close the index.
  3. Open the index.

What is the expected behavior?
knn.enabled setting should be final and should not be allowed to get updated.

Do you have any screenshots?
If applicable, add screenshots to help explain your problem.

Do you have any additional context?
This index setting should be made final, so that it cannot be updated even after closing the index.
Also, during snapshot restore, there is a list of index settings for which we do not support updation. We should add this setting in that list.

@harishbhakuni harishbhakuni added bug Something isn't working untriaged labels Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working untriaged
Projects
None yet
Development

No branches or pull requests

1 participant