Skip to content

[2.10] Do not fanout FT.INFO command to replicas (#6960)#6996

Merged
JoanFM merged 1 commit into2.10from
backport-6960-to-2.10
Oct 8, 2025
Merged

[2.10] Do not fanout FT.INFO command to replicas (#6960)#6996
JoanFM merged 1 commit into2.10from
backport-6960-to-2.10

Conversation

@JoanFM
Copy link
Collaborator

@JoanFM JoanFM commented Oct 7, 2025

Backport #6960 to 2.10


Note

FT.INFO no longer fans out to replicas; it now targets only master shards by removing the all-shards coordination strategy.

  • Coordinator:
    • Update InfoCommandHandler in coord/src/module.c to stop using MR_SetCoordinationStrategy(..., false), so FT.INFO fans out only to masters (not replicas).

Written by Cursor Bugbot for commit 185d98b. This will update automatically on new commits. Configure here.

The current behaviour of the coordinator is not correct, because FT.INFO command reports the number of docs as actual number of docs multiplied by number of replicas

(cherry picked from commit 8eb5ce5)
@JoanFM JoanFM requested a review from GuyAv46 October 7, 2025 09:07
@codecov
Copy link

codecov bot commented Oct 7, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.28%. Comparing base (ba1eb00) to head (185d98b).
⚠️ Report is 4 commits behind head on 2.10.

Additional details and impacted files
@@            Coverage Diff             @@
##             2.10    #6996      +/-   ##
==========================================
- Coverage   89.32%   89.28%   -0.04%     
==========================================
  Files         207      207              
  Lines       36165    36164       -1     
==========================================
- Hits        32304    32289      -15     
- Misses       3861     3875      +14     
Flag Coverage Δ
flow 83.80% <ø> (-0.17%) ⬇️
unit 42.72% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@JoanFM JoanFM added this pull request to the merge queue Oct 8, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 8, 2025
@JoanFM JoanFM added this pull request to the merge queue Oct 8, 2025
github-merge-queue bot pushed a commit that referenced this pull request Oct 8, 2025
Do not fanout FT.INFO command to replicas (#6960)

The current behaviour of the coordinator is not correct, because FT.INFO command reports the number of docs as actual number of docs multiplied by number of replicas

(cherry picked from commit 8eb5ce5)

Co-authored-by: Igor Malinovskiy <[email protected]>
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 8, 2025
@fcostaoliveira
Copy link
Contributor

Automated performance analysis summary

This comment was automatically generated given there is performance data available.

In summary:

  • Detected a total of 8 stable tests between versions.
  • Detected a total of 4 highly unstable benchmarks (4 baseline).
  • Latency analysis confirmed regressions in 1 of the unstable tests:
  • Detected a total of 1 improvements above the improvement water line.

You can check a comparison in detail via the grafana link

Performance Improvements - Comparison between 2.10 and backport-6960-to-2.10.

Time Period from 30 days ago. (environment used: oss-standalone)

Test Case Baseline 2.10 (median obs. +- std.dev) Comparison backport-6960-to-2.10 (median obs. +- std.dev) % change (higher-better) Note
search-filtering-tag-numeric 207 +- 5.2% (3 datapoints) 228 10.1% IMPROVEMENT

Performance Regressions and Issues - Comparison between 2.10 and backport-6960-to-2.10.

Time Period from 30 days ago. (environment used: oss-standalone)

Test Case Baseline 2.10 (median obs. +- std.dev) Comparison backport-6960-to-2.10 (median obs. +- std.dev) % change (higher-better) Note
ftsb-1M-enwiki_abstract-hashes-fulltext-simple-1word-query 1295 +- 20.0% UNSTABLE (3 datapoints) 1066 -17.7% UNSTABLE (baseline high variance); server: FT.SEARCH p50 increased 16.0% (baseline CV=0.0%); client: OverallQuantiles.allCommands.q50 increased 22.3% (baseline CV=25.7%)
ftsb-1M-enwiki_abstract-hashes-fulltext-2word-intersection-query-non-sortable 39 +- 27.8% UNSTABLE (3 datapoints) 39 -1.6% UNSTABLE (baseline high variance); server: p50 latency stable; client: client latency stable; neither server nor client side confirms regression
ftsb-1M-enwiki_abstract-hashes-fulltext-2word-union-query-non-sortable 1367 +- 15.4% UNSTABLE (3 datapoints) 1370 0.2% UNSTABLE (baseline high variance); server: p50 latency stable; client: client latency stable; neither server nor client side confirms regression
search-numeric-sortby-desc 5554 +- 25.8% UNSTABLE (3 datapoints) 5994 7.9% UNSTABLE (baseline high variance); server: FT.SEARCH p50 decreased 7.7% (baseline CV=0.0%); client: Latency decreased 7.3% (baseline CV=32.5%); neither server nor client side confirms regression
Tests with No Significant Changes (8 tests)

Tests with No Significant Changes

Test Case Baseline 2.10 (median obs. +- std.dev) Comparison backport-6960-to-2.10 (median obs. +- std.dev) % change (higher-better) Note
ftsb-10K-enwiki_abstract-hashes-term-suffix 2678 +- 0.8% (3 datapoints) 2686.0 0.3% No Change
ftsb-10K-enwiki_abstract-hashes-term-suffix-withsuffixtrie 88858 +- 1.8% (3 datapoints) 93577.0 5.3% potential IMPROVEMENT
ftsb-1K-enwiki_abstract-hashes-term-contains 2231 +- 1.1% (3 datapoints) 2280.0 2.2% No Change
ftsb-1M-nyc_taxis-ftadd-load 32754 +- 2.6% (3 datapoints) 33746.0 3.0% potential IMPROVEMENT
search-ftsb-370K-docs-union-iterators-q4 7.6 +- 0.0% (3 datapoints) 7.6 0.0%
search-geo 229 +- 4.2% (3 datapoints) 236.0 3.1% potential IMPROVEMENT
search-numeric 3568 +- 7.2% (3 datapoints) 3476.0 -2.6% No Change
search-numeric-sortby-optimize 24 +- 4.4% (3 datapoints) 24.0 1.0% No Change

@JoanFM JoanFM added this pull request to the merge queue Oct 8, 2025
Merged via the queue into 2.10 with commit 001fcb7 Oct 8, 2025
28 checks passed
@JoanFM JoanFM deleted the backport-6960-to-2.10 branch October 8, 2025 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants