Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotfix issue/1629 #1633

Merged
merged 4 commits into from
Oct 20, 2022
Merged

Hotfix issue/1629 #1633

merged 4 commits into from
Oct 20, 2022

Conversation

fulmicoton
Copy link
Collaborator

No description provided.

For Field with several FieldValues, with a
value that contained no token at all, the token position
was reinitialized to 0.

As a result, PhraseQueries can show some false positives.
In addition, after the computation of the position delta, we can
underflow u32, and end up with gigantic delta.

We haven't been able to actually explain the bug in 1629, but it
is assumed that in some corner case these delta can cause a panic.

Closes #1629
@fulmicoton fulmicoton marked this pull request as ready for review October 20, 2022 01:33
@codecov-commenter
Copy link

Codecov Report

Merging #1633 (5a8c01d) into main (f0a2b1c) will decrease coverage by 0.28%.
The diff coverage is 92.60%.

❗ Current head 5a8c01d differs from pull request most recent head 72b9508. Consider uploading reports for the commit 72b9508 to get more accurate results

@@            Coverage Diff             @@
##             main    #1633      +/-   ##
==========================================
- Coverage   94.22%   93.94%   -0.29%     
==========================================
  Files         235      253      +18     
  Lines       42893    47615    +4722     
==========================================
+ Hits        40418    44732    +4314     
- Misses       2475     2883     +408     
Impacted Files Coverage Δ
common/src/writer.rs 94.11% <ø> (ø)
fastfield_codecs/src/main.rs 0.53% <0.00%> (-0.42%) ⬇️
ownedbytes/src/lib.rs 98.63% <ø> (+1.36%) ⬆️
query-grammar/src/occur.rs 100.00% <ø> (ø)
src/aggregation/bucket/mod.rs 92.98% <ø> (ø)
src/collector/custom_score_top_collector.rs 100.00% <ø> (ø)
src/collector/mod.rs 48.21% <ø> (ø)
src/collector/top_collector.rs 97.60% <ø> (ø)
src/collector/tweak_score_top_collector.rs 100.00% <ø> (ø)
src/core/inverted_index_reader.rs 72.86% <0.00%> (-4.19%) ⬇️
... and 266 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@fulmicoton fulmicoton merged commit 94313b6 into main Oct 20, 2022
@fulmicoton fulmicoton deleted the hotfix-issue/1629 branch October 20, 2022 02:03
This was referenced Jan 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants