Skip to content

Fix CLUSTER RESET to use lazyfree-lazy-user-flush to do the lazyfree#1931

Merged
hwware merged 1 commit intovalkey-io:unstablefrom
enjoy-binbin:fix_reset
Apr 17, 2025
Merged

Fix CLUSTER RESET to use lazyfree-lazy-user-flush to do the lazyfree#1931
hwware merged 1 commit intovalkey-io:unstablefrom
enjoy-binbin:fix_reset

Conversation

@enjoy-binbin
Copy link
Member

We use lazyfree-lazy-user-flush in #1190 but in #1926 it was changed to use replica-lazy-flush wrongly.

We use lazyfree-lazy-user-flush in valkey-io#1190 but in valkey-io#1926 it was changed to
use replica-lazy-flush wrongly.

Signed-off-by: Binbin <[email protected]>
@enjoy-binbin enjoy-binbin requested review from PingXie and hpatro April 8, 2025 06:53
@enjoy-binbin
Copy link
Member Author

@hpatro I don't see this discussed? If we want to change it, the description in valkey.conf needs to be changed as well.

@codecov
Copy link

codecov bot commented Apr 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.09%. Comparing base (772bd8b) to head (01b38b4).
Report is 18 commits behind head on unstable.

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable    #1931      +/-   ##
============================================
+ Coverage     71.06%   71.09%   +0.03%     
============================================
  Files           123      123              
  Lines         65704    65704              
============================================
+ Hits          46692    46715      +23     
+ Misses        19012    18989      -23     
Files with missing lines Coverage Δ
src/cluster_legacy.c 86.17% <100.00%> (+0.02%) ⬆️

... and 13 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Member

@PingXie PingXie left a comment

Choose a reason for hiding this comment

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

Good catch! Thanks @enjoy-binbin

Copy link
Contributor

@hpatro hpatro left a comment

Choose a reason for hiding this comment

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

@hpatro I don't see this discussed? If we want to change it, the description in valkey.conf needs to be changed as well.

Good catch. My bad. I did it as a part of the discussion from CLUSTER REPLICATE NO ONE PR. Should we have the same behavior for CLUSTER REPLICATE NO ONE?

flushAllDataAndResetRDB(server.repl_replica_lazy_flush ? EMPTYDB_ASYNC : EMPTYDB_NO_FLAGS);

@enjoy-binbin
Copy link
Member Author

i am not sure about it. replicate use repl_replica_lazy_flush also make sense to me.
@madolson Do you have a preference?

@PingXie
Copy link
Member

PingXie commented Apr 14, 2025

replicate use repl_replica_lazy_flush also make sense to me.

hmm, that works too I think. that being said, there should've been just one lazy_flush config imo.

@hwware hwware merged commit 1119765 into valkey-io:unstable Apr 17, 2025
51 checks passed
@enjoy-binbin enjoy-binbin deleted the fix_reset branch April 17, 2025 20:25
@madolson
Copy link
Member

i am not sure about it. replicate use repl_replica_lazy_flush also make sense to me. madolson Do you have a preference?

I have a vague preference for user flush since this is a user triggered action. But, I think either are OK.

I honestly think we might consider merging user-flush and replication flush in the future.

@hpatro
Copy link
Contributor

hpatro commented Apr 17, 2025

i am not sure about it. replicate use repl_replica_lazy_flush also make sense to me. madolson Do you have a preference?

I have a vague preference for user flush since this is a user triggered action. But, I think either are OK.

I honestly think we might consider merging user-flush and replication flush in the future.

Let's do it in 9.0?

nitaicaro pushed a commit to nitaicaro/valkey that referenced this pull request Apr 22, 2025
…alkey-io#1931)

We use lazyfree-lazy-user-flush in valkey-io#1190 but in valkey-io#1926 it was changed to
use replica-lazy-flush wrongly.

Signed-off-by: Binbin <[email protected]>
Signed-off-by: Nitai Caro <[email protected]>
nitaicaro pushed a commit to nitaicaro/valkey that referenced this pull request Apr 22, 2025
…alkey-io#1931)

We use lazyfree-lazy-user-flush in valkey-io#1190 but in valkey-io#1926 it was changed to
use replica-lazy-flush wrongly.

Signed-off-by: Binbin <[email protected]>
nitaicaro pushed a commit to nitaicaro/valkey that referenced this pull request Apr 22, 2025
…alkey-io#1931)

We use lazyfree-lazy-user-flush in valkey-io#1190 but in valkey-io#1926 it was changed to
use replica-lazy-flush wrongly.

Signed-off-by: Binbin <[email protected]>
hwware pushed a commit to wuranxx/valkey that referenced this pull request Apr 24, 2025
…alkey-io#1931)

We use lazyfree-lazy-user-flush in valkey-io#1190 but in valkey-io#1926 it was changed to
use replica-lazy-flush wrongly.

Signed-off-by: Binbin <[email protected]>
Signed-off-by: hwware <[email protected]>
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.

5 participants