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

Remove parsing of unused cluster slot information #25

Merged
merged 2 commits into from
Jun 27, 2024

Conversation

bjosv
Copy link
Collaborator

@bjosv bjosv commented Jun 24, 2024

Currently there is no usage of the parsed importing and migrating information,
which is only provided by CLUSTER NODES.
Let's remove this superfluous code since we rely on ASK redirections,
which will be emitted when a slot is in migrating state.

bjosv added 2 commits June 24, 2024 15:13
Currently there is no usage of the parsed "importing" and "migrating"
information, which is only provided by CLUSTER NODES.
Let's remove this superfluous code since we rely on ASK redirections,
which will be emitted when a slot is in "migrating" state.

Signed-off-by: Björn Svensson <[email protected]>
@bjosv bjosv requested a review from zuiderkwast June 27, 2024 12:54
Copy link
Collaborator

@zuiderkwast zuiderkwast left a comment

Choose a reason for hiding this comment

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

Great.

We can still correctly ignore this information in the response, I hope. Do we have any test covering that?

@bjosv
Copy link
Collaborator Author

bjosv commented Jun 27, 2024

We can still correctly ignore this information in the response, I hope. Do we have any test covering that?

There are no tests covering that as I know, but I added #33 to improve that.
When inspecting the code we can still ignore the info though.

@bjosv bjosv merged commit e82b068 into valkey-io:main Jun 27, 2024
41 of 43 checks passed
@bjosv bjosv deleted the remove-oslots branch June 27, 2024 19:00
michael-grunder pushed a commit to michael-grunder/libvalkey that referenced this pull request Aug 1, 2024
Currently there is no usage of the parsed `importing` and `migrating` information,
which is only provided by `CLUSTER NODES`.
Let's remove this superfluous code since we rely on `ASK` redirections,
which will be emitted when a slot is in `migrating` state.

Signed-off-by: Björn Svensson <[email protected]>
@bjosv bjosv added the breakingchange Indicates a possible backwards incompatible change label Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breakingchange Indicates a possible backwards incompatible change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants