Skip to content

[8.4] fix: remove draining from Flush callback#7471

Merged
redisearch-backport-pull-request[bot] merged 2 commits into8.4from
backport-7420-to-8.4
Nov 26, 2025
Merged

[8.4] fix: remove draining from Flush callback#7471
redisearch-backport-pull-request[bot] merged 2 commits into8.4from
backport-7420-to-8.4

Conversation

@redisearch-backport-pull-request
Copy link
Contributor

@redisearch-backport-pull-request redisearch-backport-pull-request bot commented Nov 22, 2025

Description

Backport of #7420 to 8.4.


Note

Removes workersThreadPool_Drain from the FlushDB onFlush callback and adds a test validating query behavior across FLUSHALL.

  • Core:
    • Remove workersThreadPool_Drain(ctx, 0) from onFlush in src/spec.c, leaving only Indexes_Free, Dictionary_Clear, and stats reset.
  • Tests:
    • Add tests/pytests/test_query_while_flush.py to stress queries during and after FLUSHALL, verifying errors/successes before/after and new index functionality.

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

* fix: remove draining from Flush callback

* test: add test for query while flushall

* improve testing with workers

* improve test

(cherry picked from commit e56bf5b)
@codecov
Copy link

codecov bot commented Nov 22, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.85%. Comparing base (499e96c) to head (ca352a7).
⚠️ Report is 10 commits behind head on 8.4.

Additional details and impacted files
@@            Coverage Diff             @@
##              8.4    #7471      +/-   ##
==========================================
+ Coverage   85.78%   85.85%   +0.06%     
==========================================
  Files         330      330              
  Lines       52442    52464      +22     
  Branches    12001    12001              
==========================================
+ Hits        44989    45043      +54     
+ Misses       7286     7254      -32     
  Partials      167      167              
Flag Coverage Δ
flow 84.42% <ø> (-0.24%) ⬇️
unit 52.49% <ø> (-0.02%) ⬇️

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 review from alonre24 and meiravgri November 26, 2025 11:01
@redisearch-backport-pull-request redisearch-backport-pull-request bot added this pull request to the merge queue Nov 26, 2025
Merged via the queue into 8.4 with commit 32c6c92 Nov 26, 2025
26 checks passed
@redisearch-backport-pull-request redisearch-backport-pull-request bot deleted the backport-7420-to-8.4 branch November 26, 2025 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants