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

Improve CLUSTER SETSLOT replication handling to support older replica versions. #686

Merged
merged 6 commits into from
Jun 24, 2024

Conversation

PingXie
Copy link
Member

@PingXie PingXie commented Jun 24, 2024

Added logic to iterate through the list of replicas and check for any replicas running a version older than 8.0.0. Older replicas do not support the CLUSTER SETSLOT command on replicas. If such a replica is found, the replication is skipped and falls back to the old (non-replicated) behavior.

Fix #421

PingXie and others added 6 commits June 13, 2024 17:38
to avoid restarting Valkey server during the test.

The `DEBUG RESTART` procedure was not always reliable, as sometimes
the server would fail to restart, leading to flaky tests.

Signed-off-by: Ping Xie <[email protected]>
…ca versions.

Added logic to iterate through the list of replicas and check for any replicas
running a version older than 8.0.0. Older replicas do not support the CLUSTER
SETSLOT command on replicas. If such a replica is found, the replication is
skipped and falls back to the old (non-replicated) behavior.

Signed-off-by: Ping Xie <[email protected]>
@PingXie PingXie requested a review from zuiderkwast June 24, 2024 00:07
Copy link

codecov bot commented Jun 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.20%. Comparing base (ce79539) to head (c17ca48).

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable     #686      +/-   ##
============================================
+ Coverage     70.05%   70.20%   +0.14%     
============================================
  Files           110      110              
  Lines         60084    60092       +8     
============================================
+ Hits          42094    42189      +95     
+ Misses        17990    17903      -87     
Files Coverage Δ
src/cluster_legacy.c 85.76% <100.00%> (-0.27%) ⬇️

... and 15 files with indirect coverage changes

@PingXie PingXie merged commit 32ca6e5 into valkey-io:unstable Jun 24, 2024
19 checks passed
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.

Don't replicate SETSLOT to nodes that may crash
2 participants