Skip to content

Patch for Lucene bug 14857#130254

Merged
elasticsearchmachine merged 11 commits intoelastic:8.19from
benwtrent:patch-lucene-14857
Jul 1, 2025
Merged

Patch for Lucene bug 14857#130254
elasticsearchmachine merged 11 commits intoelastic:8.19from
benwtrent:patch-lucene-14857

Conversation

@benwtrent
Copy link
Copy Markdown
Member

Basically, advanceShallow for knn queries can flip back from hitting NO_MORE_DOCS to a valid doc ID again. This can cause search higher level queries to flip back and forth breaking assumptions and causing a CPU core to be locked up in-definitely (until server reboot).

Applies the fix provided here, but requires gathering score docs again: apache/lucene#14858

closes: #130239

@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-search-relevance (Team:Search Relevance)

@elasticsearchmachine elasticsearchmachine added the Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch label Jun 27, 2025
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Hi @benwtrent, I've created a changelog YAML for you.

Copy link
Copy Markdown
Contributor

@john-wagster john-wagster left a comment

Choose a reason for hiding this comment

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

might be worth considering porting the testAdvanceAdverseShallow test here for now or creating some similar test. And seems like Adrien's comment on the NO_MORE_DOCS check from the Lucene PR is applicable here as well.

otherwise lgtm

@benwtrent benwtrent added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Jul 1, 2025
@elasticsearchmachine elasticsearchmachine merged commit 462e4f9 into elastic:8.19 Jul 1, 2025
22 checks passed
@benwtrent benwtrent deleted the patch-lucene-14857 branch July 1, 2025 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) >bug :Search Relevance/Vectors Vector search Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch v8.19.1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants