Skip to content

[2.10] [MOD-12243] fix: fix concurrency issue on Reducer#7218

Merged
redisearch-backport-pull-request[bot] merged 1 commit into2.10from
backport-7214-to-2.10
Nov 4, 2025
Merged

[2.10] [MOD-12243] fix: fix concurrency issue on Reducer#7218
redisearch-backport-pull-request[bot] merged 1 commit into2.10from
backport-7214-to-2.10

Conversation

@redisearch-backport-pull-request
Copy link
Contributor

@redisearch-backport-pull-request redisearch-backport-pull-request bot commented Nov 4, 2025

Description

Backport of #7214 to 2.10.


Note

Replace dynamic reducer registration with a fixed static registry and remove registration code, simplifying RDCR_GetFactory.

  • Aggregate/Reducer:
    • Replace runtime reducer registration with a static, const builtin registry in src/aggregate/reducer.c (globalRegistry with 14 entries) and validate size via static_assert.
    • Simplify RDCR_GetFactory to iterate over the fixed registry; remove lazy init and dynamic array usage.
    • Remove registration infrastructure: delete RDCR_RegisterFactory/RDCR_RegisterBuiltins implementations and their declarations from src/aggregate/reducer.h.

Written by Cursor Bugbot for commit f3a8f3c. This will update automatically on new commits. Configure here.

* 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)
@redisearch-backport-pull-request redisearch-backport-pull-request bot added this pull request to the merge queue Nov 4, 2025
Merged via the queue into 2.10 with commit ac182c1 Nov 4, 2025
14 checks passed
@redisearch-backport-pull-request redisearch-backport-pull-request bot deleted the backport-7214-to-2.10 branch November 4, 2025 21:17
@codecov
Copy link

codecov bot commented Nov 4, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.25%. Comparing base (6d7f207) to head (f3a8f3c).
⚠️ Report is 1 commits behind head on 2.10.

Additional details and impacted files
@@            Coverage Diff             @@
##             2.10    #7218      +/-   ##
==========================================
- Coverage   89.28%   89.25%   -0.03%     
==========================================
  Files         207      207              
  Lines       35318    35308      -10     
==========================================
- Hits        31532    31513      -19     
- Misses       3786     3795       +9     
Flag Coverage Δ
flow 83.81% <100.00%> (-0.17%) ⬇️
unit 42.47% <100.00%> (-0.02%) ⬇️

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.

@JoanFM JoanFM changed the title [2.10] fix: fix concurrency issue on Reducer [2.10] [MOD-12243] fix: fix concurrency issue on Reducer Nov 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant