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

MOD-6597: Fix numeric index deletion #4513

Merged
merged 4 commits into from Mar 18, 2024
Merged

MOD-6597: Fix numeric index deletion #4513

merged 4 commits into from Mar 18, 2024

Conversation

raz-mon
Copy link
Collaborator

@raz-mon raz-mon commented Mar 13, 2024

Describe the changes in the pull request

We have a bug in our numeric index - we don't update the revisionId when we trim the Tree (in NumericRangeTree_TrimEmptyLeaves), causing us not to abort the reading of the numeric index for an invalidated cursor upon opening an invalidated NumericRangeIterator, and possibly crash.

Mark if applicable

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

Copy link

codecov bot commented Mar 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.46%. Comparing base (efb4350) to head (eb3ea29).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4513      +/-   ##
==========================================
+ Coverage   85.43%   85.46%   +0.03%     
==========================================
  Files         188      188              
  Lines       32892    32892              
==========================================
+ Hits        28101    28111      +10     
+ Misses       4791     4781      -10     

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

@raz-mon raz-mon enabled auto-merge March 13, 2024 14:09
src/numeric_index.c Show resolved Hide resolved
tests/pytests/test_cursors.py Show resolved Hide resolved
@raz-mon raz-mon requested a review from oshadmi March 14, 2024 06:17
Copy link
Collaborator

@oshadmi oshadmi left a comment

Choose a reason for hiding this comment

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

👍🏼 👏🏼

@raz-mon raz-mon disabled auto-merge March 18, 2024 15:07
@raz-mon raz-mon enabled auto-merge March 18, 2024 17:39
@raz-mon raz-mon added this pull request to the merge queue Mar 18, 2024
Merged via the queue into master with commit 0a5723f Mar 18, 2024
11 checks passed
@raz-mon raz-mon deleted the razmon-fix_crash_gc branch March 18, 2024 21:11
Copy link

Successfully created backport PR for 2.8:

Copy link

Backport failed for 2.6, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin 2.6
git worktree add -d .worktree/backport-4513-to-2.6 origin/2.6
cd .worktree/backport-4513-to-2.6
git switch --create backport-4513-to-2.6
git cherry-pick -x 6e3bc74d48e3b56284e053c4e6670555d03dba9d 3925390ccd7625d3ce137d7f1048c7d922c0175c 87b3c1c184258f671d871b5a0eb64815b1136247

Copy link

Successfully created backport PR for 2.10:

raz-mon added a commit that referenced this pull request Mar 19, 2024
* Fix numeric index deletion bug

* Remove periodic runs of the GC in test

* Enhance test
github-merge-queue bot pushed a commit that referenced this pull request Mar 19, 2024
* Fix numeric index deletion bug

* Remove periodic runs of the GC in test

* Enhance test
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

2 participants