Skip to content

[8.8] [MOD-18502] Move shard and standalone FAIL reply serialization off the main thread - #11554

Merged
redisearch-backport-pull-request[bot] merged 2 commits into
8.8from
backport-agent/pr-11541-to-8.8
Sep 27, 2026
Merged

redisearch-backport-pull-request[bot] merged 2 commits into
8.8from
backport-agent/pr-11541-to-8.8

Conversation

@redisearch-backport-pull-request

@redisearch-backport-pull-request redisearch-backport-pull-request Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Describe the changes in the pull request

Backport of #11541, merge commit 4b9a5820c23e5930041144a7a68f813fd09aa714, to 8.8.

Move shard and standalone SEARCH/AGGREGATE FAIL reply serialization onto workers while preserving complete-chunk collection, so late errors replace the whole reply. Keep the blocked-client deadline active through encoding and finalize pending cursors in free-data cleanup. Covers RESP2/RESP3, PROFILE, initial cursors and cursor READ.

Release adaptations:

  • Use the existing QEXEC_F_BUILDPIPELINE_NO_ROOT flag instead of the newer IsCoordinator helper.
  • Preserve 8.8's FAIL-only cursor timeout dispatch and existing lifecycle APIs.
  • Omit public RETURN-STRICT and foreground-timeout-cap test cases, which this release does not support.
  • Expect one timeout-counter increment where only the callback reports an error: 8.8's pipeline does not observe the newer timed-out flag. Production accounting is unchanged.

Validation on this backport (Redis 8.9.241):

  • Assertion-enabled debug build and 978 C/C++ unit tests passed.
  • Complete test_blocked_client_timeout file: 36 passed standalone; 51 passed in a three-shard cluster.
  • Saved logs contain no failed assertions, including those the runner summary can omit.
  • Full CI is rerunning on the follow-up commit; ASAN and coverage were not rerun locally.

Which additional issues this PR fixes

MOD-18502

Main objects this PR modified

  • AREQ worker dispatch and cursor cleanup.
  • Blocked-client assertions and encoding sync points.
  • Consolidated blocked-client timeout tests.

Mark if applicable

  • This PR introduces API changes
  • This PR introduces serialization changes

Release Notes

  • This PR requires release notes
  • This PR does not require release notes

…e main thread (#11541)

* [MOD-18502] Serialize shard and standalone FAIL replies in the background

* [MOD-18502] Preserve FAIL collection while encoding replies on workers

(cherry picked from commit 4b9a582)
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-24T22:14:23.369632Z 4253b59 New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
4.5% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@lerman25
lerman25 requested a review from GuyAv46 September 25, 2026 08:54
@redisearch-backport-pull-request
redisearch-backport-pull-request Bot added this pull request to the merge queue Sep 27, 2026
Merged via the queue into 8.8 with commit 9e22e0d Sep 27, 2026
27 of 28 checks passed
@redisearch-backport-pull-request
redisearch-backport-pull-request Bot deleted the backport-agent/pr-11541-to-8.8 branch September 27, 2026 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport This PR was automatically backported by an agent auto-backport-conflicts There were conflicts in this automatic backport size:L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants