Skip to content

[2.8] fix: remove draining from Flush callback (#7420)#7525

Merged
JoanFM merged 2 commits into2.8from
backport-7420-to-2.8
Nov 26, 2025
Merged

[2.8] fix: remove draining from Flush callback (#7420)#7525
JoanFM merged 2 commits into2.8from
backport-7420-to-2.8

Conversation

@JoanFM
Copy link
Collaborator

@JoanFM JoanFM commented Nov 26, 2025

Backport #7420 to 2.8


Note

Remove worker-thread draining from the FlushDB callback and add a stress test for querying during FLUSHALL under MT mode.

  • Core (flush handling):
    • Remove worker-thread draining from onFlush (src/spec.c), leaving index/metadata cleanup intact.
  • Tests:
    • Add tests/pytests/test_query_while_flush.py to stress concurrent queries across FLUSHALL, validating old index errors and new index functionality under MT mode.

Written by Cursor Bugbot for commit 4348f52. 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)
@JoanFM JoanFM requested review from alonre24 and meiravgri November 26, 2025 10:59
@JoanFM JoanFM changed the title fix: remove draining from Flush callback (#7420) [2.8] fix: remove draining from Flush callback (#7420) Nov 26, 2025
alonre24
alonre24 previously approved these changes Nov 26, 2025
@codecov
Copy link

codecov bot commented Nov 26, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.52%. Comparing base (2b3246e) to head (4348f52).
⚠️ Report is 1 commits behind head on 2.8.

Additional details and impacted files
@@            Coverage Diff             @@
##              2.8    #7525      +/-   ##
==========================================
- Coverage   87.54%   87.52%   -0.03%     
==========================================
  Files         203      203              
  Lines       34925    34924       -1     
==========================================
- Hits        30575    30567       -8     
- Misses       4350     4357       +7     
Flag Coverage Δ
flow 81.88% <ø> (-0.24%) ⬇️
unit 42.38% <ø> (+<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 enabled auto-merge November 26, 2025 13:54
Copy link

@jit-ci jit-ci bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ The following Jit checks failed to run:

  • secret-detection-trufflehog

#jit_bypass_commit in this PR to bypass, Jit Admin privileges required.

More info in the Jit platform.

@JoanFM JoanFM closed this Nov 26, 2025
auto-merge was automatically disabled November 26, 2025 14:16

Pull request was closed

@JoanFM JoanFM reopened this Nov 26, 2025
@JoanFM JoanFM added this pull request to the merge queue Nov 26, 2025
@JoanFM JoanFM self-assigned this Nov 26, 2025
Merged via the queue into 2.8 with commit bc289d6 Nov 26, 2025
18 of 20 checks passed
@JoanFM JoanFM deleted the backport-7420-to-2.8 branch November 26, 2025 15:35
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