Skip to content

[2.10] fix: remove draining from Flush callback (#7420)#7524

Merged
JoanFM merged 1 commit into2.10from
backport-7420-to-2.10
Nov 26, 2025
Merged

[2.10] fix: remove draining from Flush callback (#7420)#7524
JoanFM merged 1 commit into2.10from
backport-7420-to-2.10

Conversation

@JoanFM
Copy link
Collaborator

@JoanFM JoanFM commented Nov 26, 2025

Backport #7420 to 2.10


Note

Remove worker-thread draining during FLUSHDB flush and add a multithreaded test validating query behavior across FLUSHALL.

  • Engine/Core:
    • Adjust onFlush in src/spec.c: stop draining worker thread pool (workersThreadPool_Drain) on FLUSHDB_START.
  • Tests:
    • Add tests/pytests/test_query_while_flush.py to stress-query an index before/after FLUSHALL, then create a new index and validate expected errors/successes.

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

@JoanFM JoanFM requested a review from alonre24 November 26, 2025 10:54
* fix: remove draining from Flush callback

* test: add test for query while flushall

* improve testing with workers

* improve test

(cherry picked from commit e56bf5b)
@JoanFM JoanFM force-pushed the backport-7420-to-2.10 branch from 6682f9b to c7b75b0 Compare November 26, 2025 10:56
@JoanFM JoanFM changed the title fix: remove draining from Flush callback (#7420) [2.10] fix: remove draining from Flush callback (#7420) Nov 26, 2025
@JoanFM JoanFM requested a review from meiravgri November 26, 2025 11:00
@codecov
Copy link

codecov bot commented Nov 26, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.29%. Comparing base (11b99de) to head (c7b75b0).
⚠️ Report is 1 commits behind head on 2.10.

Additional details and impacted files
@@            Coverage Diff             @@
##             2.10    #7524      +/-   ##
==========================================
- Coverage   89.33%   89.29%   -0.04%     
==========================================
  Files         207      207              
  Lines       35448    35447       -1     
==========================================
- Hits        31667    31654      -13     
- Misses       3781     3793      +12     
Flag Coverage Δ
flow 83.86% <ø> (-0.17%) ⬇️
unit 42.37% <ø> (-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 Nov 26, 2025
Merged via the queue into 2.10 with commit 5b47f12 Nov 26, 2025
17 checks passed
@JoanFM JoanFM deleted the backport-7420-to-2.10 branch November 26, 2025 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants