Skip to content

[8.4] MOD-13252 Support multiple warnings in reply #7900

Merged
meiravgri merged 2 commits into8.4from
backport-7892-to-8.4
Dec 29, 2025
Merged

[8.4] MOD-13252 Support multiple warnings in reply #7900
meiravgri merged 2 commits into8.4from
backport-7892-to-8.4

Conversation

@meiravgri
Copy link
Collaborator

@meiravgri meiravgri commented Dec 27, 2025

backport #7892 to 8.4


Note

Adds multi-warning support and consistent warning shapes across results and profiles.

  • Refactors RESP3 aggregate reply to emit a warning array via _replyWarnings (timeout, OOM, max prefix expansions, indexing OOM), and ensures it’s included alongside total_results
  • Coordinator (rpnet.c) now iterates the RESP3 warning array from shards, sets corresponding flags (timeout/max-prefix/OOM/indexing failure), and propagates timeouts even from empty replies
  • FT.PROFILE warning output changed to an array ('Warning': ['None'] or multiple entries) rather than a single string
  • Test suite updated to expect warning arrays, validate coordinator/shard propagation in RESP2/3, and includes new cases for empty-reply warnings and combined warnings; adds helper get_shards_profile

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

* take code from meiravg_persist_warnings_in_areq

* take tests

* fix test

* review fixes

* move test

(cherry picked from commit 0b7aee5)
@codecov
Copy link

codecov bot commented Dec 27, 2025

Codecov Report

❌ Patch coverage is 97.22222% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 86.01%. Comparing base (45628e4) to head (58c9e0d).
⚠️ Report is 3 commits behind head on 8.4.

Files with missing lines Patch % Lines
src/aggregate/aggregate_exec.c 94.73% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              8.4    #7900      +/-   ##
==========================================
- Coverage   86.05%   86.01%   -0.05%     
==========================================
  Files         332      332              
  Lines       53683    53690       +7     
  Branches    11998    11998              
==========================================
- Hits        46198    46180      -18     
- Misses       7318     7343      +25     
  Partials      167      167              
Flag Coverage Δ
flow 84.60% <97.22%> (-0.18%) ⬇️
unit 52.41% <0.00%> (-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.

@meiravgri meiravgri enabled auto-merge December 28, 2025 06:22
@meiravgri meiravgri added this pull request to the merge queue Dec 29, 2025
Merged via the queue into 8.4 with commit 06e88bd Dec 29, 2025
32 checks passed
@meiravgri meiravgri deleted the backport-7892-to-8.4 branch December 29, 2025 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants