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

Added the fix for NPE happening during merges when all vector fields docs are deleted in the segments getting merged #2365

Merged
merged 1 commit into from
Jan 6, 2025

Conversation

navneet1v
Copy link
Collaborator

Description

Added the fix for NPE happening during merges when all vector fields docs are deleted in the segments getting merged.

What is the bug:

Where there are a lot of deleted docs and we are trying to merge the segments, we are seeing the NPE exception coming as there were not docs containing vector and we are trying to iterate over vector values.

The issue is not always reproducible hence adding an IT is not possible here. Also with the changes add in 2.18 related to threshold based graph creation, the issue is now only limited to indices created <=2.16 version of Opensearch using BDV.

Attaching a script here(author: @jmazanec15 ) that helped in reproducing the issue.
merge-failure-2.sh.zip

Related Issues

NA

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.

@vibrantvarun
Copy link
Member

Checks failing

@navneet1v navneet1v added Bug Fixes Changes to a system or product designed to handle a programming bug/glitch backport 2.x and removed skip-changelog labels Jan 3, 2025
Copy link
Member

@vibrantvarun vibrantvarun left a comment

Choose a reason for hiding this comment

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

LGTM Thanks

@navneet1v
Copy link
Collaborator Author

@jmazanec15 and @shatejas can you please take a look

jmazanec15
jmazanec15 previously approved these changes Jan 6, 2025
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

…docs are deleted in the segments getting merged

Signed-off-by: Navneet Verma <[email protected]>
@navneet1v navneet1v merged commit 9fb7a5a into opensearch-project:main Jan 6, 2025
31 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jan 6, 2025
…docs are deleted in the segments getting merged (#2365)

Signed-off-by: Navneet Verma <[email protected]>
(cherry picked from commit 9fb7a5a)
navneet1v added a commit that referenced this pull request Jan 6, 2025
…docs are deleted in the segments getting merged (#2365) (#2371)

Signed-off-by: Navneet Verma <[email protected]>
(cherry picked from commit 9fb7a5a)

Co-authored-by: Navneet Verma <[email protected]>
Gankris96 pushed a commit to Gankris96/k-NN that referenced this pull request Jan 8, 2025
…docs are deleted in the segments getting merged (opensearch-project#2365)

Signed-off-by: Navneet Verma <[email protected]>
owenhalpert pushed a commit to owenhalpert/k-NN that referenced this pull request Jan 9, 2025
…docs are deleted in the segments getting merged (opensearch-project#2365)

Signed-off-by: Navneet Verma <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Bug Fixes Changes to a system or product designed to handle a programming bug/glitch
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

5 participants