Commit 4388b5d
committed
fix: filter deleted indexes in GetIndexedSegments to prevent stale segment 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>1 parent f14a835 commit 4388b5d
2 files changed
+30
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
562 | 562 | | |
563 | 563 | | |
564 | 564 | | |
565 | | - | |
| 565 | + | |
566 | 566 | | |
567 | 567 | | |
568 | 568 | | |
| |||
576 | 576 | | |
577 | 577 | | |
578 | 578 | | |
579 | | - | |
580 | | - | |
581 | | - | |
582 | | - | |
583 | 579 | | |
584 | 580 | | |
585 | 581 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
816 | 816 | | |
817 | 817 | | |
818 | 818 | | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
819 | 848 | | |
820 | 849 | | |
821 | 850 | | |
| |||
0 commit comments