Uh oh!
There was an error while loading. Please reload this page.
[fix](ann-index) skip ANN index build for segments with insufficient training rows - #64955
Open
yx-keith wants to merge 1 commit into
Open
[fix](ann-index) skip ANN index build for segments with insufficient training rows#64955yx-keith wants to merge 1 commit into
yx-keith wants to merge 1 commit into
Conversation
yx-keith
requested review from
BiteTheDDDDt, CalvinKirs, Gabriel39, csun5285, deardeng, eldenmoon, gavinchou, liaoxin01, luwei16, morningman and zclllyybb
as code ownersJune 29, 2026 09:58
hello-stephen
commented
Jun 29, 2026
Contributor
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
Contributor
Possible file(s) that should be tracked in LFS detected: 🚨The following file(s) exceeds the file size limit:
Consider using |
…training rows When a segment has fewer rows than an IVF index needs (nlist) or a PQ quantizer needs (2^pq_nbits * 100), FAISS k-means training fails with 'nx >= k', which aborts segment finalize and fails the load. With group commit this makes WAL replay keep failing on the same segment. Skip building the ANN index for such segments instead of failing the load. The query path already falls back to brute-force TopN for segments without an ANN index. Also avoid retraining on the sub-chunk remainder in finish() once a full chunk has already trained the index, which would otherwise hit the same 'nx >= k' error for segments larger than one build chunk. This backports the crash-fix part of apache#64082 to branch-4.0.
yx-keithforce-pushed
the
fix-ann-train-min-rows-4.0
branch
from
June 30, 2026 03:15
b0af7aa to
ee78f08Compareyx-keith
commented
Jul 6, 2026
ContributorAuthor
run buildall |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)