Skip to content

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.Contains(t, rdb0.ClusterResetHard(ctx).Err(), "Can't reset cluster while database is not empty")
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
…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
@sonarqubecloud
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