Skip to content

[8.2] [MOD-10774] - test: add test validating crash from different timeout policies#7048

Merged
JoanFM merged 4 commits into8.2from
backport-7017-to-8.2
Oct 15, 2025
Merged

[8.2] [MOD-10774] - test: add test validating crash from different timeout policies#7048
JoanFM merged 4 commits into8.2from
backport-7017-to-8.2

Conversation

@redisearch-backport-pull-request
Copy link
Contributor

@redisearch-backport-pull-request redisearch-backport-pull-request bot commented Oct 13, 2025

Description

Backport of #7017 to 8.2.


Note

Handle shard timeout errors under RETURN policy by discarding the error reply and resetting state, and add a cluster test validating mixed timeout policies don’t crash.

  • Coordinator (distributed aggregate):
    • In src/coord/dist_aggregate.c, when receiving MR_REPLY_ERROR with message "Timeout limit was reached" and timeout policy is not FAIL (i.e., RETURN), free the reply and reset current state (RPNet_resetCurrent) instead of propagating an error.
  • Tests:
    • Add tests/pytests/test_cluster_aggregate_timeout.py to configure shards with mixed timeout policies (RETURN on coordinator shard, FAIL on others) and validate FT.AGGREGATE returns results without crashing.

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

…policies (#7017)

* test: add test validating crash from different timeout policies

* test: improve test as per comments

* test: improve spped by using pipeline

* handle smaller amount of docs

* Update tests/pytests/test_cluster_aggregate_timeout.py

Co-authored-by: GuyAv46 <[email protected]>

---------

Co-authored-by: GuyAv46 <[email protected]>
(cherry picked from commit ea20c36)
@JoanFM JoanFM requested a review from GuyAv46 October 14, 2025 17:42
GuyAv46
GuyAv46 previously approved these changes Oct 15, 2025
@redisearch-backport-pull-request redisearch-backport-pull-request bot added this pull request to the merge queue Oct 15, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 15, 2025
@JoanFM JoanFM added this pull request to the merge queue Oct 15, 2025
@JoanFM JoanFM removed this pull request from the merge queue due to a manual request Oct 15, 2025
@JoanFM JoanFM requested a review from GuyAv46 October 15, 2025 07:11
@JoanFM JoanFM enabled auto-merge October 15, 2025 07:32
@codecov
Copy link

codecov bot commented Oct 15, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.43%. Comparing base (4c92797) to head (a81cfc5).
⚠️ Report is 1 commits behind head on 8.2.

Additional details and impacted files
@@            Coverage Diff             @@
##              8.2    #7048      +/-   ##
==========================================
- Coverage   89.46%   89.43%   -0.04%     
==========================================
  Files         253      253              
  Lines       41665    41667       +2     
  Branches     3725     3725              
==========================================
- Hits        37275    37264      -11     
- Misses       4341     4354      +13     
  Partials       49       49              
Flag Coverage Δ
flow 82.03% <100.00%> (-0.15%) ⬇️
unit 47.58% <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.

@JoanFM JoanFM added this pull request to the merge queue Oct 15, 2025
Merged via the queue into 8.2 with commit 9bd9f56 Oct 15, 2025
19 checks passed
@JoanFM JoanFM deleted the backport-7017-to-8.2 branch October 15, 2025 09:09
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