fix: filter deleted indexes in GetIndexedSegments to prevent stale segment loading#48558
fix: filter deleted indexes in GetIndexedSegments to prevent stale segment loading#48558XuanYang-cn wants to merge 1 commit intomilvus-io:masterfrom
Conversation
…gment loading GetIndexedSegments included deleted index entries in targetIndices but skipped them in the counting loop, causing indexedFields to never equal len(targetIndices) when deleted entries existed. This made every segment appear unindexed after drop+create index cycles, forcing GetQueryVChanPositions to fall back to loading stale pre-compaction segments instead of the optimized one. See also: milvus-io#48557 Signed-off-by: yangxuan <xuan.yang@zilliz.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: XuanYang-cn The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
…gment loading GetIndexedSegments included deleted index entries in targetIndices but skipped them in the counting loop, causing indexedFields to never equal len(targetIndices) when deleted entries existed. This made every segment appear unindexed after drop+create index cycles, forcing GetQueryVChanPositions to fall back to loading stale pre-compaction segments instead of the optimized one. pr: milvus-io#48558 See also: milvus-io#48557 Signed-off-by: yangxuan <xuan.yang@zilliz.com>
|
[ci-v2-notice] To rerun ci-v2 checks, comment with:
If you have any questions or requests, please contact @zhikunyao. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #48558 +/- ##
==========================================
- Coverage 77.61% 77.61% -0.01%
==========================================
Files 2112 2112
Lines 351497 351495 -2
==========================================
- Hits 272822 272810 -12
- Misses 70330 70342 +12
+ Partials 8345 8343 -2
🚀 New features to boost your workflow:
|
Summary
targetIndicesinGetIndexedSegments, fixing a mismatch wherelen(targetIndices)included deleted entries but the counting loop skipped themGetQueryVChanPositionsto load stale pre-compaction segments instead of the optimized oneissue: #48557
Signed-off-by: yangxuan xuan.yang@zilliz.com