Repository navigation
[MOD-18502] Move shard and standalone FAIL reply serialization off the main thread - #11541
Conversation
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7bb18a877b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
|
🤖 Auto-backport summary
(PR #11541, Workflow run · Retry unfinished targets with |
…e main thread Port the FAIL path from OSS 8.10 pull request #11541 to master.
…e main thread Use QueryRequest's blocked-client ownership for FAIL worker replies. Release the index read lock after collecting the chunk and port standalone RESP2 and RESP3 reply parity tests. Port the FAIL path from OSS 8.10 pull request #11541.
…e main thread Use callback-free FAIL worker replies and release the index read lock before encoding buffered rows. Exercise standalone RESP2 and RESP3 reply parity. Port the FAIL path from OSS 8.10 pull request #11541.
…e main thread Use callback-free FAIL worker replies and release the index read lock before encoding buffered rows. Exercise standalone RESP2 and RESP3 reply parity. Port the FAIL path from OSS 8.10 pull request #11541.


Describe the changes in the pull request
Shard and standalone SEARCH/AGGREGATE under
ON_TIMEOUT FAILcurrently serialize buffered results on the main thread. This moves reply serialization to the worker while preserving complete-chunk collection, so late APPLY/FILTER errors still replace the entire chunk.Selected FAIL requests use the existing direct serialization path with no reply callback. The blocked-client deadline remains active through encoding; Redis discards the private reply buffer when timeout wins. Cursor completion runs in blocked-client free-data cleanup, freeing timed-out or exhausted cursors and pausing other nonterminal cursors.
This covers RESP2/RESP3, PROFILE, internal shard commands, initial cursors, and cursor READ. RETURN, RETURN_STRICT, coordinator execution, HYBRID, and inline dispatch retain their existing behavior. Serialization uses RETURN's existing spec-lock lifecycle.
Worker metrics count serialization attempts even when timeout discards the reply. When both the timeout callback and worker report a timeout, both increment the module timeout counter.
Validation:
test_blocked_client_timeoutstandalone suite: 67 passed, 5 skipped, no failures.Follows #11534, merged into
8.10.Which additional issues this PR fixes
MOD-18502
Main objects this PR modified
Mark if applicable
Release Notes