Skip to content

[2.10] [MOD-10774] - test: add test validating crash from different timeout policies#7047

Merged
redisearch-backport-pull-request[bot] merged 3 commits into2.10from
backport-7017-to-2.10
Oct 15, 2025
Merged

[2.10] [MOD-10774] - test: add test validating crash from different timeout policies#7047
redisearch-backport-pull-request[bot] merged 3 commits into2.10from
backport-7017-to-2.10

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 2.10.


Note

Coordinator now discards shard timeout errors when ON_TIMEOUT=RETURN during distributed AGGREGATE, with a regression test covering mixed timeout policies.

  • Aggregate coordinator (dist_aggregate.c):
    • On shard error replies, if the message is "Timeout limit was reached" and ON_TIMEOUT policy is RETURN, discard the error (MRReply_Free + RPNet_resetCurrent) instead of failing.
  • Tests:
    • Add test_cluster_aggregate_with_shards_timeout verifying no crash when coordinator shard has ON_TIMEOUT=RETURN and other shards ON_TIMEOUT=FAIL with timeouts during FT.AGGREGATE.

Written by Cursor Bugbot for commit 5a0f2ff. 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)
@codecov
Copy link

codecov bot commented Oct 14, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.28%. Comparing base (438a8bd) to head (5a0f2ff).
⚠️ Report is 1 commits behind head on 2.10.

Additional details and impacted files
@@            Coverage Diff             @@
##             2.10    #7047      +/-   ##
==========================================
- Coverage   89.31%   89.28%   -0.03%     
==========================================
  Files         207      207              
  Lines       36167    36169       +2     
==========================================
- Hits        32301    32293       -8     
- Misses       3866     3876      +10     
Flag Coverage Δ
flow 83.80% <100.00%> (-0.16%) ⬇️
unit 42.72% <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 requested a review from GuyAv46 October 14, 2025 17:42
@redisearch-backport-pull-request redisearch-backport-pull-request bot added this pull request to the merge queue Oct 15, 2025
Merged via the queue into 2.10 with commit d8ac62a Oct 15, 2025
13 checks passed
@redisearch-backport-pull-request redisearch-backport-pull-request bot deleted the backport-7017-to-2.10 branch October 15, 2025 05:49
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