Repository navigation
[8.8-rse] [MOD-18502] Move coordinator AGGREGATE FAIL reply serialization off the main thread - #11589
Merged
redisearch-backport-pull-request[bot] merged 2 commits intoSep 29, 2026
Conversation
…he main thread (#11552) * [MOD-18502] Move coordinator AGGREGATE FAIL reply serialization off the main thread * [MOD-18502] Avoid duplicate timeout accounting for discarded background replies * [MOD-18502] Discard early worker errors after timeout replies * test: tolerate background PROFILE timeout warning accounting * [MOD-18502] Stop collecting shard profiles after FAIL cancellation * [MOD-18502] Wake coordinator reply waits on FAIL timeout (cherry picked from commit 58e0e44)
1 of 4 tasks
lerman25
previously approved these changes
Sep 28, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## 8.8-rse #11589 +/- ##
==========================================
Coverage ? 81.22%
==========================================
Files ? 562
Lines ? 76567
Branches ? 30619
==========================================
Hits ? 62193
Misses ? 14086
Partials ? 288
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Define the CoordRequestCtx free-count helper used by the coordinator cancellation tests. RETURN_STRICT is not a public policy on 8.8-rse, so reply parity compares FAIL against RETURN, as in the 8.8 backport. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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. |
|
GuyAv46
approved these changes
Sep 29, 2026
redisearch-backport-pull-request
Bot
deleted the
backport-agent/pr-11552-to-8.8-rse
branch
September 29, 2026 11:51
3 of 4 tasks
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 #11552 to
8.8-rse.Merge commit:
58e0e440b59500a88aa207a3642f4afa3c8032cbAdaptations for 8.8-rse
The source changes are a clean cherry-pick. The follow-up commit
7a8eac785changes tests only:_get_coord_req_ctx_free_countfor the coordinator cancellation tests. TheGET_COORD_REQ_CTX_FREE_COUNTdebug command already exists on this branch; the Python helper came to 8.10 with MOD-14076 FT.CURSOR READ: honor RETURN_STRICT timeout policy on the coordinator #9451 and was missing here.return-strictfrom its config surface ([8.8-rse] [MOD-13757] Remove return-strict from timeout config surface #10586). Under RESP2, streaming RETURN reports a count of 1 while buffered FAIL reports the full chunk count, so the rows are compared separately. This matches the 8.8 backport ([8.8] [MOD-18502] Move coordinator AGGREGATE FAIL reply serialization off the main thread #11590).22cd906dd) is not needed here. 8.8-rse already applies the policy captured at dispatch, as 8.10 does. Its regression test,test_fail_timeout_wakes_profile_reply_wait_after_policy_change, passes on this branch without the fix.Validation of the follow-up: debug build with assertions;
test_blocked_client_timeout.py43/43 standalone and 57/57 in a three-shard cluster.Describe the changes in the pull request
Coordinator AGGREGATE with
ON_TIMEOUT FAILserializes replies on the main thread. Move serialization to workers through the existing direct reply path used by RETURN, preserving full-chunk collection so late errors still replace the entire reply.Keep the blocked-client deadline active during encoding. Finalize coordinator cursors during free-data cleanup: pause successful nonterminal cursors and free timed-out, disconnected, or exhausted cursors. This includes PROFILE, initial WITHCURSOR requests, and cursor READ. Background error paths skip accounting when they observe that the request has timed out, across coordinator, shard, and standalone paths. This is best-effort suppression; it does not guarantee exactly-once accounting.
Follows #11534 and #11541. Rebase to master is deferred until #11543 merges.
Validation:
test_blocked_client_timeout: 67 passed / 9 skipped standalone; 100 passed / 13 skipped in a three-shard cluster. No failures.Known limitations accepted in this PR
timeout_errortwice. Metrics for a background reply may remain counted even when Redis discards that reply. We accept this without adding atomic accounting ownership or additional synchronization. This accounting limitation does not imply a duplicate client reply or a server crash.Which additional issues this PR fixes
MOD-18502
Main objects this PR modified
Mark if applicable
Release Notes