Repository navigation
[8.6] [MOD-15685] Fix crash when a legacy index spec is restored after a failed replication sync - #11625
Merged
redisearch-backport-pull-request[bot] merged 1 commit intoSep 30, 2026
Conversation
Merged
1 of 4 tasks
…iled replication sync (#11619) [MOD-15685] Refuse a legacy index spec RESTORE after a failed load The guard added in #10872 refused a legacy ft_index0 load when the legacy-spec registry or the UPGRADE_INDEX rules were NULL, taking that as "no load in progress". A failed load breaks that assumption: LOADING_FAILED clears the loading flag but frees neither global, and the rules are only ever freed by a successful load. On a server that has not completed a load since startup - for example a replica whose first full sync failed and was then promoted - a RESTORE of a truncated legacy payload got past the guard and crashed on the NULL spec name. Key the refusal on g_isLoading as well. The new test drives exactly that sequence against a fake master; it crashes the server without the fix. Co-authored-by: Claude Opus 5.5 <[email protected]> (cherry picked from commit b1b6903)
kei-nan
force-pushed
the
backport-agent/pr-11619-to-8.6
branch
from
September 30, 2026 11:12
7e159b3 to
dbfc4b6
Compare
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
dor-forer
approved these changes
Sep 30, 2026
dor-forer
approved these changes
Sep 30, 2026
|
redisearch-backport-pull-request
Bot
deleted the
backport-agent/pr-11619-to-8.6
branch
September 30, 2026 13:50
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Backport of #11619 to
8.6.Original PR
b1b6903a1cc5b314fc64329f1434ff8f09710fddCherry-pick result
Conflict Log
src/spec.ctests/pytests/test_legacy_module_types.pyRelease notes
🤖 Generated by the auto-backport workflow.