Skip to content

[8.10] MOD-17092 FT.HYBRID: forward PARAMS/TIMEOUT from parsed state, not argv re-scan - #10914

Merged
nafraf merged 1 commit into
8.10from
backport-agent/pr-10566-to-8.10
Aug 17, 2026
Merged

nafraf merged 1 commit into
8.10from
backport-agent/pr-10566-to-8.10

Conversation

@redisearch-backport-pull-request

Copy link
Copy Markdown
Contributor

Backport of #10566 to 8.10.

Original PR

Cherry-pick result

Resolved 6 conflict(s) — see Conflict Log below.

Conflict Log

src/coord/hybrid/dist_hybrid.c:34

  • Conflict: Master's include-what-you-use expansion was absent from 8.10, while this PR added param.h within that expanded block.
  • Why it conflicted: Master gained a broad include cleanup after the 8.10 branch diverged.
  • Resolution: Added only param.h to the target branch's existing include list.
  • Rationale: The parsed parameter dictionary helper requires this header; the unrelated include expansion does not belong in the backport.

src/coord/hybrid/dist_hybrid.c:331

  • Conflict: Master used the newer binary-length-aware command construction API; 8.10 still uses MR_NewCommandArgv.
  • Why it conflicted: Binary-safe coordinator fanout landed on master after 8.10 diverged.
  • Resolution: Kept 8.10's index-name extraction and MR_NewCommandArgv API.
  • Rationale: The API migration is unrelated to forwarding parsed PARAMS/TIMEOUT state and is not available on this branch.

src/coord/hybrid/dist_hybrid.c:336-344

  • Conflict: The profile command block differed because master records explicit argument lengths, while 8.10 does not.
  • Why it conflicted: The same later binary-safe fanout change rewrote command assembly on master.
  • Resolution: Kept the target's command assembly shape and switched its profile checks to shardWireParams->profileOptions.
  • Rationale: This applies the PR's parsed-state interface without importing an unavailable command API.

src/coord/hybrid/dist_hybrid.c:386-390

  • Conflict: Master used MRCommand_AppendLiteral; 8.10 uses MRCommand_Append with an explicit length.
  • Why it conflicted: Command helper usage changed on master after branch divergence.
  • Resolution: Kept the target helper and sourced the condition from shardWireParams->sendExplainScore.
  • Rationale: The resulting wire token is identical while preserving the target branch's API surface.

tests/cpptests/coord_tests/test_cpp_hybrid_build_mr_cmd.cpp:235-260

  • Conflict: The target's argument verifier still had unconditional advancement that the PR replaces with PARAMS-aware branching.
  • Why it conflicted: The PR refactors this append-heavy helper around parsed PARAMS reconstruction.
  • Resolution: Kept the PR's conditional advancement and removed the obsolete duplicate advancement.
  • Rationale: This lets the test oracle validate reconstructed PARAMS blocks without skipping or double-reading arguments.

tests/cpptests/coord_tests/test_cpp_hybrid_build_mr_cmd.cpp:751-761

  • Conflict: The source context contained a binary-argument test absent from 8.10.
  • Why it conflicted: That test belongs to the later binary-safe coordinator fanout change, not this PR.
  • Resolution: Dropped the binary-argument test while retaining this PR's PARAMS/TIMEOUT and keyword-collision tests.
  • Rationale: Append-heavy test conflicts must not pull unrelated master-only tests into a backport.

Release notes

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

🤖 Generated by the auto-backport workflow.

…gv re-scan (#10566)

* FT.HYBRID: forward PARAMS/TIMEOUT from parsed state, not argv re-scan

* Revert initQueryTimeout() changes

* Add HYBRID_NUM_BUF_SIZE constant, address SonarQube comments int test_cpp_hybrid_build_mr_cmd.cpp

* Refactor HybridRequest_buildMRCommand to use HybridShardWireParams

* Assert HybridCombineWireParams is not NULL in MRCommand_appendCombine
@redisearch-backport-pull-request redisearch-backport-pull-request Bot added auto-backport This PR was automatically backported by an agent auto-backport-conflicts There were conflicts in this automatic backport labels Aug 13, 2026
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

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

See analysis details on SonarQube Cloud

@nafraf
nafraf self-requested a review August 17, 2026 07:27
@nafraf
nafraf added this pull request to the merge queue Aug 17, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Aug 17, 2026
@nafraf
nafraf added this pull request to the merge queue Aug 17, 2026
Merged via the queue into 8.10 with commit 994ec4d Aug 17, 2026
39 of 40 checks passed
@nafraf
nafraf deleted the backport-agent/pr-10566-to-8.10 branch August 17, 2026 15:05
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.

1 participant