fix: Fix inverted index load failure caused by sliced files#48526
fix: Fix inverted index load failure caused by sliced files#48526sunby wants to merge 3 commits intomilvus-io:masterfrom
Conversation
In CompactIndexDatas, slice meta may contain files that are not in index_datas. So compact will fail. Now we specify key when loading inverted index to avoid it. Signed-off-by: sunby <sunbingyi1992@gmail.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: sunby 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 |
|
[ci-v2-notice] To rerun ci-v2 checks, comment with:
If you have any questions or requests, please contact @zhikunyao. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #48526 +/- ##
===========================================
- Coverage 83.98% 77.81% -6.18%
===========================================
Files 627 2100 +1473
Lines 103896 349126 +245230
===========================================
+ Hits 87259 271670 +184411
- Misses 16637 69177 +52540
- Partials 0 8279 +8279
🚀 New features to boost your workflow:
|
Signed-off-by: sunby <sunbingyi1992@gmail.com>
|
/ci-rerun-e2e-default |
|
/ci-rerun-e2e-arm |
|
/ci-rerun-e2e-default |
…and fix test
The fill_null_offsets lambda in LoadIndexMetas used resize+memcpy from
position 0 on each call, which overwrites previous data when iterating
over multiple slices. Fix by appending each slice's data after the
previous data.
Same fix applied to fill_non_exist_offset in JsonInvertedIndex.
Fix TestSlicedOffsetFilesLoadIndependently: the test used non-nullable
JSON data with {"a": null} expecting null_offset entries, but
ProcessJsonFieldData only calls null_adder when schema.nullable()==true
and the row is field-level null. Changed test to use a nullable field
with explicit validity bitmap to correctly populate null_offset_.
Updated non_exist_offset size expectation to account for both null rows
(which also get non_exist_adder) and non-existent key rows.
Signed-off-by: sunby <sunbingyi1992@gmail.com>
|
/ci-rerun-integration-test |
|
/ci-rerun-e2e-arm |
1 similar comment
|
/ci-rerun-e2e-arm |
|
/ci-rerun-e2e-arm |
|
/ci-rerun-go-sdk |
|
/ci-rerun-e2e-default |
3 similar comments
|
/ci-rerun-e2e-default |
|
/ci-rerun-e2e-default |
|
/ci-rerun-e2e-default |
|
/ci-rerun-go-sdk |
2 similar comments
|
/ci-rerun-go-sdk |
|
/ci-rerun-go-sdk |
|
/ci-rerun-e2e-default |
|
/ci-rerun-integration-test |
1 similar comment
|
/ci-rerun-integration-test |
|
/ci-rerun-e2e-default |
|
/ci-rerun-integration-test |
1 similar comment
|
/ci-rerun-integration-test |
|
/ci-rerun-e2e-default |
issue: #48294
In CompactIndexDatas, slice meta may contain files that are not in index_datas. So compact will fail. Now we specify key when loading inverted index to avoid it.