[2.8] [MOD-12243] fix: fix concurrency issue on Reducer#7216
Merged
redisearch-backport-pull-request[bot] merged 1 commit into2.8from Nov 4, 2025
Merged
[2.8] [MOD-12243] fix: fix concurrency issue on Reducer#7216redisearch-backport-pull-request[bot] merged 1 commit into2.8from
redisearch-backport-pull-request[bot] merged 1 commit into2.8from
Conversation
* fix: fix concurrency issue on Reducer * test: fix test distagg * fix: make it static array * fix: fix proper static * Update src/module-init/module-init.c * Update src/aggregate/reducer.c Co-authored-by: GuyAv46 <[email protected]> --------- Co-authored-by: GuyAv46 <[email protected]> (cherry picked from commit 7184778)
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## 2.8 #7216 +/- ##
==========================================
- Coverage 87.48% 87.45% -0.04%
==========================================
Files 203 203
Lines 34793 34783 -10
==========================================
- Hits 30438 30418 -20
- Misses 4355 4365 +10
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
JoanFM
approved these changes
Nov 4, 2025
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.
Description
Backport of #7214 to
2.8.Note
Switches reducer factory registration from dynamic runtime registration to a fixed static registry and updates lookup accordingly.
src/aggregate/reducer.cwith fixed entries (e.g.,COUNT,SUM,MIN,MAX,AVG,COUNT_DISTINCT,QUANTILE,STDDEV,FIRST_VALUE,RANDOM_SAMPLE,HLL,HLL_SUM) guarded byREGISTRY_SIZEandstatic_assert.RDCR_GetFactoryto iterate the fixed array; remove dynamic array usage.RDCR_RegisterFactory,RDCR_RegisterBuiltins, and associated macros; drop their declarations fromsrc/aggregate/reducer.h.Written by Cursor Bugbot for commit d19b5a9. This will update automatically on new commits. Configure here.