Skip to content

Fix Tag OnReopen Callback - [MOD-8011]#5277

Merged
GuyAv46 merged 8 commits intomasterfrom
guyav-MOD-8011
Dec 1, 2024
Merged

Fix Tag OnReopen Callback - [MOD-8011]#5277
GuyAv46 merged 8 commits intomasterfrom
guyav-MOD-8011

Conversation

@GuyAv46
Copy link
Collaborator

@GuyAv46 GuyAv46 commented Dec 1, 2024

Describe the changes in the pull request

Fixing a bug when we abort from the TagReader_OnReopen callback prematurely, causing an invalid read later when reading from an iterator that was not reopened properly.

Mark if applicable

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

@codecov
Copy link

codecov bot commented Dec 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.71%. Comparing base (98cfcbf) to head (57f51b3).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5277   +/-   ##
=======================================
  Coverage   86.70%   86.71%           
=======================================
  Files         193      193           
  Lines       34752    34753    +1     
=======================================
+ Hits        30133    30135    +2     
+ Misses       4619     4618    -1     

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

@GuyAv46 GuyAv46 requested review from kei-nan and oshadmi December 1, 2024 14:16
@GuyAv46 GuyAv46 enabled auto-merge December 1, 2024 14:28
@GuyAv46 GuyAv46 added this pull request to the merge queue Dec 1, 2024
Merged via the queue into master with commit 893808e Dec 1, 2024
@GuyAv46 GuyAv46 deleted the guyav-MOD-8011 branch December 1, 2024 16:26
redisearch-backport-pull-request bot pushed a commit that referenced this pull request Dec 1, 2024
* add a test

* fix test

* fix test

* make test crash and not just use-after-free "safely"

* fix crash

* minor improvement to the test

* revert comment fix

* improve comment on test

(cherry picked from commit 893808e)
@redisearch-backport-pull-request
Copy link
Contributor

Successfully created backport PR for 2.8:

redisearch-backport-pull-request bot pushed a commit that referenced this pull request Dec 1, 2024
* add a test

* fix test

* fix test

* make test crash and not just use-after-free "safely"

* fix crash

* minor improvement to the test

* revert comment fix

* improve comment on test

(cherry picked from commit 893808e)
@redisearch-backport-pull-request
Copy link
Contributor

Successfully created backport PR for 2.6:

redisearch-backport-pull-request bot pushed a commit that referenced this pull request Dec 1, 2024
* add a test

* fix test

* fix test

* make test crash and not just use-after-free "safely"

* fix crash

* minor improvement to the test

* revert comment fix

* improve comment on test

(cherry picked from commit 893808e)
@redisearch-backport-pull-request
Copy link
Contributor

Successfully created backport PR for 2.10:

redisearch-backport-pull-request bot pushed a commit that referenced this pull request Dec 1, 2024
* add a test

* fix test

* fix test

* make test crash and not just use-after-free "safely"

* fix crash

* minor improvement to the test

* revert comment fix

* improve comment on test

(cherry picked from commit 893808e)
@redisearch-backport-pull-request
Copy link
Contributor

Successfully created backport PR for 8.0:

github-merge-queue bot pushed a commit that referenced this pull request Dec 1, 2024
Fix Tag OnReopen Callback - [MOD-8011] (#5277)

* add a test

* fix test

* fix test

* make test crash and not just use-after-free "safely"

* fix crash

* minor improvement to the test

* revert comment fix

* improve comment on test

(cherry picked from commit 893808e)

Co-authored-by: GuyAv46 <[email protected]>
github-merge-queue bot pushed a commit that referenced this pull request Dec 1, 2024
Fix Tag OnReopen Callback - [MOD-8011] (#5277)

* add a test

* fix test

* fix test

* make test crash and not just use-after-free "safely"

* fix crash

* minor improvement to the test

* revert comment fix

* improve comment on test

(cherry picked from commit 893808e)

Co-authored-by: GuyAv46 <[email protected]>
github-merge-queue bot pushed a commit that referenced this pull request Dec 1, 2024
* Fix Tag OnReopen Callback - [MOD-8011] (#5277)

* add a test

* fix test

* fix test

* make test crash and not just use-after-free "safely"

* fix crash

* minor improvement to the test

* revert comment fix

* improve comment on test

(cherry picked from commit 893808e)

* fix test for 2.6

---------

Co-authored-by: GuyAv46 <[email protected]>
Co-authored-by: GuyAv46 <[email protected]>
github-merge-queue bot pushed a commit that referenced this pull request Dec 1, 2024
Fix Tag OnReopen Callback - [MOD-8011] (#5277)

* add a test

* fix test

* fix test

* make test crash and not just use-after-free "safely"

* fix crash

* minor improvement to the test

* revert comment fix

* improve comment on test

(cherry picked from commit 893808e)

Co-authored-by: GuyAv46 <[email protected]>

@skip(cluster=True)
def testTagIndex_OnReopen(env:Env): # issue MOD-8011
n_docs_per_tag_block = 1000
Copy link
Collaborator

Choose a reason for hiding this comment

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

Related to INDEX_BLOCK_SIZE_DOCID_ONLY ? (for Tag)

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.

3 participants