Skip to content

[BUG] Block using memory optimized search for indices created before 2.17 #2917

@0ctopus13prime

Description

@0ctopus13prime

What is the bug?
When an index was created before 2.17, and user upgrades the cluster to 3.1 and turn on memory optimized search, then NPE will be raised from SegmentReader.getVectorReader as old codec does not have the implementation. We added getVectorReader to return non-null NativeEngines990KnnVectorsReader at version 3.1.

We should fix this check to check the index created version and return false accordingly.

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

  1. Spin up 2.17 cluster
  2. Configure Faiss knn field.
  3. Upgrade the cluster to 3.1
  4. Turn on memory optimized search.

What is the expected behavior?
A clear and concise description of what you expected to happen.

What is your host/environment?

  • OS: Linux
  • Version : 3.1
  • Plugins : kNN

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

Do you have any additional context?
Add any other context about the problem.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

Status

3.x

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions