Skip to content

Remove unused MultiLeafKnnCollector and BlockingFloatHeap#15686

Merged
mayya-sharipova merged 1 commit intoapache:mainfrom
mayya-sharipova:cleanup-MultiLeafKnnCollector
Feb 9, 2026
Merged

Remove unused MultiLeafKnnCollector and BlockingFloatHeap#15686
mayya-sharipova merged 1 commit intoapache:mainfrom
mayya-sharipova:cleanup-MultiLeafKnnCollector

Conversation

@mayya-sharipova
Copy link
Contributor

These classes are no longer used after PR #14226 and #15063
switched KNN queries to optimistic collection strategy.

The previous approach used MultiLeafKnnCollector with a shared
BlockingFloatHeap to exchange top scores across segments during
concurrent search. This caused non-deterministic results due to
race conditions in score synchronization between threads.

These classes are no longer used after PR apache#14226 and apache#15063
switched KNN queries to optimistic collection strategy.

The previous approach used MultiLeafKnnCollector with a shared
BlockingFloatHeap to exchange top scores across segments during
concurrent search. This caused non-deterministic results due to
race conditions in score synchronization between threads.
Copy link
Member

@benwtrent benwtrent left a comment

Choose a reason for hiding this comment

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

Thank you for cleaning this up @mayya-sharipova !

@benwtrent benwtrent added the skip-changelog Apply to PRs that don't need a changelog entry, stopping the automated changelog check. label Feb 9, 2026
@mayya-sharipova mayya-sharipova merged commit 75d47f0 into apache:main Feb 9, 2026
12 of 13 checks passed
@mayya-sharipova mayya-sharipova deleted the cleanup-MultiLeafKnnCollector branch February 9, 2026 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module:core/hnsw module:core/search skip-changelog Apply to PRs that don't need a changelog entry, stopping the automated changelog check.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants