[8.4] [MOD-11817] FT.AGGREGATE show Background Indexing OOM warning#7153
[8.4] [MOD-11817] FT.AGGREGATE show Background Indexing OOM warning#7153
Conversation
* 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)
There was a problem hiding this comment.
Bug: Inconsistent OOM Handling Across Response Types
In sendChunk_Resp2, the ProfilePrinterCtx is initialized with bgScanOOM from sctx->spec->scan_failed_OOM, but qctx->bgScanOOM is not checked. This is inconsistent with sendChunk_Resp3 (line 589) which checks both qctx->bgScanOOM (for coordinator) and sctx->spec->scan_failed_OOM (for shards). In a coordinator scenario using RESP2, the background indexing OOM warning will not be propagated even if qctx->bgScanOOM is true.
src/aggregate/aggregate_exec.c#L455-L476
RediSearch/src/aggregate/aggregate_exec.c
Lines 455 to 476 in 40b7030
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## 8.4 #7153 +/- ##
==========================================
- Coverage 85.67% 85.62% -0.05%
==========================================
Files 327 326 -1
Lines 51945 50902 -1043
Branches 10921 10921
==========================================
- Hits 44503 43585 -918
+ Misses 7276 7151 -125
Partials 166 166
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:
|
Description
Backport of #7141 to
8.4.Note
Shows background indexing OOM warnings in FT.AGGREGATE RESP3 replies and propagates them through the coordinator, with tests and minor infra tweaks.
warningentries toFT.AGGREGATEreplies for background indexing OOM: checksqctx->bgScanOOM(coordinator) orsctx->spec->scan_failed_OOM(shards).rpnet, parses shardwarningand setsAREQ_QueryProcessingCtx(...)->bgScanOOMonQUERY_WINDEXING_FAILUREto propagate OOM status to the client.QueryProcessingCtxwithbool bgScanOOM.FT.SEARCH,FT.PROFILE, andFT.AGGREGATE.TimeLimitguards to wait helpers and use sharedinfo_modules_oom_count_strkey.Written by Cursor Bugbot for commit 40b7030. This will update automatically on new commits. Configure here.