Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make replica CLUSTER RESET flush async based on lazyfree-lazy-user-flush #1190

Open
wants to merge 2 commits into
base: unstable
Choose a base branch
from

Conversation

enjoy-binbin
Copy link
Member

Currently, if the replica has a lot of data, CLUSTER RESET
will block for a while and report the slowlog, and it seems
that there is no harm in making it async so external components
can be easier when monitoring it.

Currently, if the replica has a lot of data, CLUSTER RESET
will block for a while and report the slowlog, and it seems
that there is no harm in making it async so external components
can be easier when monitoring it.

Signed-off-by: Binbin <[email protected]>
Copy link

codecov bot commented Oct 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.71%. Comparing base (a62d1f1) to head (26782f0).
Report is 2 commits behind head on unstable.

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable    #1190      +/-   ##
============================================
+ Coverage     70.65%   70.71%   +0.06%     
============================================
  Files           114      114              
  Lines         61799    63076    +1277     
============================================
+ Hits          43664    44605     +941     
- Misses        18135    18471     +336     
Files with missing lines Coverage Δ
src/cluster_legacy.c 86.37% <100.00%> (+0.05%) ⬆️

... and 92 files with indirect coverage changes

Copy link
Member

@madolson madolson left a comment

Choose a reason for hiding this comment

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

This feels more like lazyfree-lazy-user-flush to me since it is the result of a user action. The lazy-free replica always seemed more random since it could happen arbitrarily.

@enjoy-binbin enjoy-binbin changed the title Make replica CLUSTER RESET flush async based on replica-lazy-flush Make replica CLUSTER RESET flush async based on lazyfree-lazy-user-flush Oct 19, 2024
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.

3 participants