Skip to content

[2.8] [MOD-10774] - test: add test validating crash from different timeout policies#7049

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

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

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


Note

Handle shard timeout with RETURN policy by discarding the error and resetting state; add a cluster test to prevent coordinator crashes under mixed timeout policies.

  • Coordinator (aggregate):
    • In coord/src/dist_aggregate.c, when receiving "Timeout limit was reached" and the timeout policy is not FAIL, free the reply and reset state (RPNet_resetCurrent) instead of propagating an error.
  • Tests:
    • Add tests/pytests/test_cluster_aggregate_timeout.py to validate mixed timeout policies across shards (coordinator RETURN, others FAIL) and ensure aggregate does not crash and returns results.

Written by Cursor Bugbot for commit d602bd1. 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 87.49%. Comparing base (0b14de6) to head (d602bd1).
⚠️ Report is 1 commits behind head on 2.8.

Additional details and impacted files
@@            Coverage Diff             @@
##              2.8    #7049      +/-   ##
==========================================
- Coverage   87.50%   87.49%   -0.01%     
==========================================
  Files         203      203              
  Lines       35634    35636       +2     
==========================================
  Hits        31180    31180              
- Misses       4454     4456       +2     
Flag Coverage Δ
flow 81.81% <100.00%> (-0.22%) ⬇️
unit 42.75% <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.8 with commit 11147c8 Oct 15, 2025
13 checks passed
@redisearch-backport-pull-request redisearch-backport-pull-request bot deleted the backport-7017-to-2.8 branch October 15, 2025 05:41
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