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

Fix the replica should remove the master link when receiving the CLUSTER RESET command #2259

Merged
merged 2 commits into from
Apr 20, 2024

Conversation

git-hulk
Copy link
Member

This PR also allows using SOFT|HARD in the CLUSTER RESET command,
but it has the same meaning in the Kvrocks cluster since keeping
the cluster's current epoch(version) is meaningless to it.

require.NoError(t, rdb0.Del(ctx, key).Err())
require.NoError(t, rdb0.Do(ctx, "cluster", "reset").Err())
require.NoError(t, rdb0.ClusterResetSoft(ctx).Err())
Copy link
Member Author

Choose a reason for hiding this comment

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

Use to confirm the CLUSTER RESET SOFT also works well.

@git-hulk git-hulk force-pushed the fix-remove-master-in-cluster-reset branch from 3ce8163 to bf2992d Compare April 20, 2024 12:34
src/storage/rdb.cc Outdated Show resolved Hide resolved
…TER RESET command

This PR also allows using SOFT|HARD in the CLUSTER RESET command, but
it's the same meaning to the Kvrocks cluster since kept the cluster
current epoch(version) is meaningless to it.
@git-hulk git-hulk force-pushed the fix-remove-master-in-cluster-reset branch from bf2992d to 8ac496d Compare April 20, 2024 12:54
@git-hulk git-hulk merged commit 3dc16f3 into apache:unstable Apr 20, 2024
30 checks passed
Copy link

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