Skip to content

[2.8] [MOD-11817] FT.AGGREGATE show Background Indexing OOM warning#7157

Merged
lerman25 merged 2 commits into2.8from
backport-7141-to-2.8
Oct 29, 2025
Merged

[2.8] [MOD-11817] FT.AGGREGATE show Background Indexing OOM warning#7157
lerman25 merged 2 commits into2.8from
backport-7141-to-2.8

Conversation

@lerman25
Copy link
Collaborator

@lerman25 lerman25 commented Oct 27, 2025

Backport #7141 to 2.8


Note

FT.AGGREGATE now returns a RESP3 warning for background indexing OOM, propagated from shards/coordinator; adds iterator flag and updates tests accordingly.

  • Aggregate/Coordinator:
    • Detect QUERY_WINDEXING_FAILURE in RESP3 shard replies and set req->qiter.bgScanOOM in coord/src/dist_aggregate.c.
    • In src/aggregate/aggregate_exec.c (RESP3), include QUERY_WINDEXING_FAILURE in warning when req->qiter.bgScanOOM or spec->scan_failed_OOM is set, ensuring FT.AGGREGATE surfaces the partial-results OOM warning.
  • API:
    • Add bool bgScanOOM to QueryIterator (src/result_processor.h).
  • Tests:
    • Expand OOM tests to assert RESP3 warnings for FT.AGGREGATE and cluster cases; centralize module info key as info_modules_oom_count_str.
    • Add TimeLimit wrappers to wait helpers in tests/pytests/common.py to avoid hanging loops.

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

* Check aggregate in verbosity test

* check verbosity in tests

* Check bg scan warning and raise accordingly

* Refractor tests

* Add comment

* fix comment

(cherry picked from commit 49a986c)
(cherry picked from commit 3129614)
(cherry picked from commit 95d3916)
alonre24
alonre24 previously approved these changes Oct 27, 2025
@codecov
Copy link

codecov bot commented Oct 27, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.43%. Comparing base (11147c8) to head (7d4c95a).
⚠️ Report is 2 commits behind head on 2.8.

Additional details and impacted files
@@            Coverage Diff             @@
##              2.8    #7157      +/-   ##
==========================================
- Coverage   87.49%   87.43%   -0.06%     
==========================================
  Files         203      203              
  Lines       35636    34753     -883     
==========================================
- Hits        31181    30388     -793     
+ Misses       4455     4365      -90     
Flag Coverage Δ
flow 81.80% <100.00%> (-0.23%) ⬇️
unit 42.52% <0.00%> (-0.23%) ⬇️

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.

@lerman25 lerman25 added this pull request to the merge queue Oct 27, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 27, 2025
@lerman25 lerman25 added this pull request to the merge queue Oct 29, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 29, 2025
@lerman25 lerman25 added this pull request to the merge queue Oct 29, 2025
github-merge-queue bot pushed a commit that referenced this pull request Oct 29, 2025
…7157)

* [MOD-11817] FT.AGGREGATE show Background Indexing OOM warning (#7141)

* Check aggregate in verbosity test

* check verbosity in tests

* Check bg scan warning and raise accordingly

* Refractor tests

* Add comment

* fix comment

(cherry picked from commit 49a986c)
(cherry picked from commit 3129614)
(cherry picked from commit 95d3916)

* fix tests
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 29, 2025
@lerman25 lerman25 added this pull request to the merge queue Oct 29, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 29, 2025
@lerman25 lerman25 added this pull request to the merge queue Oct 29, 2025
Merged via the queue into 2.8 with commit 3f1531f Oct 29, 2025
13 checks passed
@lerman25 lerman25 deleted the backport-7141-to-2.8 branch October 29, 2025 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants