Skip to content

fix: failed to write FTS index if the entire posting list is deleted - #4156

Merged
BubbleCal merged 4 commits into
lance-format:mainfrom
BubbleCal:fix-empty-posting-list
Jul 7, 2025
Merged

fix: failed to write FTS index if the entire posting list is deleted#4156
BubbleCal merged 4 commits into
lance-format:mainfrom
BubbleCal:fix-empty-posting-list

Conversation

@BubbleCal

Copy link
Copy Markdown
Contributor

No description provided.

BubbleCal added 2 commits July 7, 2025 14:04
Signed-off-by: BubbleCal <bubble-cal@outlook.com>
Signed-off-by: BubbleCal <bubble-cal@outlook.com>
@github-actions github-actions Bot added the bug Something isn't working label Jul 7, 2025
Signed-off-by: BubbleCal <bubble-cal@outlook.com>
@codecov-commenter

codecov-commenter commented Jul 7, 2025

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 98.63014% with 1 line in your changes missing coverage. Please review.

Project coverage is 80.14%. Comparing base (52bf15c) to head (19e3a90).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
rust/lance-index/src/scalar/inverted/index.rs 97.95% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4156      +/-   ##
==========================================
+ Coverage   80.10%   80.14%   +0.04%     
==========================================
  Files         292      292              
  Lines      100582   100651      +69     
  Branches   100582   100651      +69     
==========================================
+ Hits        80569    80666      +97     
+ Misses      17048    17023      -25     
+ Partials     2965     2962       -3     
Flag Coverage Δ
unittests 80.14% <98.63%> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@BubbleCal
BubbleCal marked this pull request as ready for review July 7, 2025 07:25

@Xuanwo Xuanwo left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thank you @BubbleCal for working on this. PR LGTM and I only have some nitpick.

Comment thread rust/lance-index/src/scalar/inverted/index.rs Outdated
Comment thread rust/lance-index/src/scalar/inverted/builder.rs Outdated
Comment thread rust/lance-index/src/scalar/inverted/index.rs Outdated
Signed-off-by: BubbleCal <bubble-cal@outlook.com>

@Xuanwo Xuanwo left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thank you!

@BubbleCal
BubbleCal merged commit 770ee97 into lance-format:main Jul 7, 2025
26 of 27 checks passed
BubbleCal added a commit that referenced this pull request Aug 14, 2025
We've seen some bugs that could be reproduced with some operations in
some order, so adding this for finding out such bugs:
- #4108
- #4156
- #3769

These weekly tests would enumerate all permutations of write operations,
and run all of them, to make sure we can cover all cases. And we would
run these tests on latest 2 stable version and main, to find out any
regression and compatibility issues

This would take a long time, so we run these weekly, rather than on each
commit.

and we've seen some bugs which happened on only large dataset, we can
run some tests over a large dataset weekly, but not adding these for now

---------

Signed-off-by: BubbleCal <bubble-cal@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants