Skip to content

Fix FieldSpec Cleanup on failed RDB load - [MOD-10307]#6410

Merged
GuyAv46 merged 4 commits intomasterfrom
guyav-MOD-10307
Jul 1, 2025
Merged

Fix FieldSpec Cleanup on failed RDB load - [MOD-10307]#6410
GuyAv46 merged 4 commits intomasterfrom
guyav-MOD-10307

Conversation

@GuyAv46
Copy link
Copy Markdown
Collaborator

@GuyAv46 GuyAv46 commented Jul 1, 2025

Describe the changes in the pull request

Fix an issue when loading a schema from RDB, and we decide to abort for some reason.

We need to make sure the number of IndexError_Init calls matches the number of IndexError_Clear calls we later do, otherwise we may free the global "N/A" string.

Mark if applicable

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

@codecov
Copy link
Copy Markdown

codecov bot commented Jul 1, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.29%. Comparing base (d6aa49c) to head (3198b10).
Report is 5 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6410      +/-   ##
==========================================
+ Coverage   89.26%   89.29%   +0.03%     
==========================================
  Files         251      251              
  Lines       41330    41308      -22     
  Branches     3623     3623              
==========================================
- Hits        36895    36888       -7     
+ Misses       4391     4376      -15     
  Partials       44       44              
Flag Coverage Δ
flow 82.01% <100.00%> (-0.09%) ⬇️
unit 46.85% <0.00%> (+<0.01%) ⬆️

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.

Copy link
Copy Markdown
Collaborator

@alonre24 alonre24 left a comment

Choose a reason for hiding this comment

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

nice catch

Comment thread src/spec.c
@GuyAv46 GuyAv46 requested a review from alonre24 July 1, 2025 15:02
@GuyAv46 GuyAv46 added this pull request to the merge queue Jul 1, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 1, 2025
@GuyAv46 GuyAv46 added this pull request to the merge queue Jul 1, 2025
Merged via the queue into master with commit fef0d10 Jul 1, 2025
18 checks passed
@GuyAv46 GuyAv46 deleted the guyav-MOD-10307 branch July 1, 2025 19:18
@redisearch-backport-pull-request
Copy link
Copy Markdown
Contributor

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

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

git fetch origin 2.8
git worktree add -d .worktree/backport-6410-to-2.8 origin/2.8
cd .worktree/backport-6410-to-2.8
git switch --create backport-6410-to-2.8
git cherry-pick -x fef0d10c514a0a9272c0725c0ff421774fa3a1a4

@redisearch-backport-pull-request
Copy link
Copy Markdown
Contributor

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-6410-to-2.6 origin/2.6
cd .worktree/backport-6410-to-2.6
git switch --create backport-6410-to-2.6
git cherry-pick -x fef0d10c514a0a9272c0725c0ff421774fa3a1a4

@redisearch-backport-pull-request
Copy link
Copy Markdown
Contributor

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

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

git fetch origin 2.10
git worktree add -d .worktree/backport-6410-to-2.10 origin/2.10
cd .worktree/backport-6410-to-2.10
git switch --create backport-6410-to-2.10
git cherry-pick -x fef0d10c514a0a9272c0725c0ff421774fa3a1a4

redisearch-backport-pull-request bot pushed a commit that referenced this pull request Jul 1, 2025
* fix field loading

* enable test

* improve comment

* fix additional leak

(cherry picked from commit fef0d10)
@redisearch-backport-pull-request
Copy link
Copy Markdown
Contributor

Successfully created backport PR for 8.0:

redisearch-backport-pull-request bot pushed a commit that referenced this pull request Jul 1, 2025
* fix field loading

* enable test

* improve comment

* fix additional leak

(cherry picked from commit fef0d10)
@redisearch-backport-pull-request
Copy link
Copy Markdown
Contributor

Successfully created backport PR for 8.2:

GuyAv46 added a commit that referenced this pull request Jul 2, 2025
* fix field loading

* enable test

* improve comment

* fix additional leak

(cherry picked from commit fef0d10)
GuyAv46 added a commit that referenced this pull request Jul 2, 2025
* fix field loading

* enable test

* improve comment

* fix additional leak

(cherry picked from commit fef0d10)
GuyAv46 added a commit that referenced this pull request Jul 2, 2025
* fix field loading

* enable test

* improve comment

* fix additional leak

(cherry picked from commit fef0d10)
@GuyAv46 GuyAv46 added the bug label Jul 2, 2025
github-merge-queue bot pushed a commit that referenced this pull request Jul 2, 2025
Fix FieldSpec Cleanup on failed RDB load - [MOD-10307] (#6410)

* fix field loading

* enable test

* improve comment

* fix additional leak

(cherry picked from commit fef0d10)

Co-authored-by: GuyAv46 <47632673+GuyAv46@users.noreply.github.com>
github-merge-queue bot pushed a commit that referenced this pull request Jul 2, 2025
Fix FieldSpec Cleanup on failed RDB load - [MOD-10307] (#6410)

* fix field loading

* enable test

* improve comment

* fix additional leak

(cherry picked from commit fef0d10)

Co-authored-by: GuyAv46 <47632673+GuyAv46@users.noreply.github.com>
github-merge-queue bot pushed a commit that referenced this pull request Jul 2, 2025
Fix FieldSpec Cleanup on failed RDB load - [MOD-10307] (#6410)

* fix field loading

* enable test

* improve comment

* fix additional leak

(cherry picked from commit fef0d10)

Co-authored-by: GuyAv46 <47632673+GuyAv46@users.noreply.github.com>
github-merge-queue bot pushed a commit that referenced this pull request Jul 6, 2025
* Fix FieldSpec Cleanup on failed RDB load - [MOD-10307] (#6410)

* fix field loading

* enable test

* improve comment

* fix additional leak

(cherry picked from commit fef0d10)

* enable short read tests on sanitizer

* minor tool improvements
github-merge-queue bot pushed a commit that referenced this pull request Jul 6, 2025
* Fix FieldSpec Cleanup on failed RDB load - [MOD-10307] (#6410)

* fix field loading

* enable test

* improve comment

* fix additional leak

(cherry picked from commit fef0d10)

* minor tool improvements

(cherry picked from commit 0294d6f)
(cherry picked from commit 873c94c)
github-merge-queue bot pushed a commit that referenced this pull request Jul 7, 2025
* Fix FieldSpec Cleanup on failed RDB load - [MOD-10307] (#6410)

* fix field loading

* enable test

* improve comment

* fix additional leak

(cherry picked from commit fef0d10)

* enable short read tests on sanitizer

(cherry picked from commit 83bec43)

* minor tool improvements

(cherry picked from commit 0294d6f)
JoanFM pushed a commit that referenced this pull request Apr 13, 2026
* fix field loading

* enable test

* improve comment

* fix additional leak
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.

2 participants