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

Fix possible corruption when iterating metric result [MOD-5791] #3854

Merged
merged 2 commits into from Sep 13, 2023

Conversation

alonre24
Copy link
Collaborator

Addressing #3841

Describe the changes in the pull request

In RSIndexResult_IterateOffsets - we didn't check if the result is of type metric, which led to possible corruption.

Mark if applicable

  • This PR introduces API changes
  • This PR introduces serialization changes

@codecov
Copy link

codecov bot commented Sep 13, 2023

Codecov Report

Patch coverage: 66.66% and project coverage change: -0.02% ⚠️

Comparison is base (88b60ad) 82.82% compared to head (9087345) 82.80%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3854      +/-   ##
==========================================
- Coverage   82.82%   82.80%   -0.02%     
==========================================
  Files         192      192              
  Lines       32575    32575              
==========================================
- Hits        26979    26975       -4     
- Misses       5596     5600       +4     
Files Changed Coverage Δ
src/offset_vector.c 82.07% <ø> (ø)
src/index_result.c 85.47% <66.66%> (ø)

... and 3 files with indirect coverage changes

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

Copy link
Collaborator

@GuyAv46 GuyAv46 left a comment

Choose a reason for hiding this comment

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

LGTM

@alonre24 alonre24 merged commit e210c0a into master Sep 13, 2023
13 of 14 checks passed
@alonre24 alonre24 deleted the alon_fix_MOD-5791 branch September 13, 2023 15:48
@DvirDukhan
Copy link
Contributor

/backport

@github-actions
Copy link

Successfully created backport PR for 2.8:

@github-actions
Copy link

Successfully created backport PR for 2.10:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants