Skip to content

refactor(cluster): remove the redis-command migration type#3544

Open
git-hulk wants to merge 1 commit into
apache:unstablefrom
git-hulk:remove-redis-command-migrate-type
Open

refactor(cluster): remove the redis-command migration type#3544
git-hulk wants to merge 1 commit into
apache:unstablefrom
git-hulk:remove-redis-command-migrate-type

Conversation

@git-hulk

@git-hulk git-hulk commented Jul 5, 2026

Copy link
Copy Markdown
Member

This PR removes the redis-command slot migration type, leaving raw-key-value
as the only migration path. The raw-key-value type has been introduced for a long time, and it outperforms the redis-command type in both resource consumption and migration speed, so we can remove it to simplify the slot migration code. Also, the redis command migration didn't work well after introducing more and more new data types.

To be noticed, there is no fallback anymore, the migration now fails with the error destination node doesn't support the APPLYBATCH command if the destination
node doesn't support the APPLYBATCH command, instead of silently falling back to the redis-command type.

Assistant By Claude Fable 5

@git-hulk git-hulk force-pushed the remove-redis-command-migrate-type branch from 77e5125 to 8418840 Compare July 5, 2026 13:40
This PR removes the `redis-command` slot migration type, leaving raw-key-value
as the only migration way. The raw-key-value type has been introduced for a long time, and it outperforms the redis-command type in both resource
consumption and migration speed, so we can remove it to simplify the slot
migration codes.

To be noticed, there is no fallback anymore, the migration now fails with the error `destination node doesn't support the APPLYBATCH command` if the destination
node doesn't support the APPLYBATCH command, instead of silently falling back to the redis-command type.

Assitanted By Claude Fable 5
@git-hulk git-hulk force-pushed the remove-redis-command-migrate-type branch from 8418840 to 401c7e5 Compare July 5, 2026 13:42
@git-hulk git-hulk marked this pull request as ready for review July 5, 2026 14:54
@sonarqubecloud

sonarqubecloud Bot commented Jul 5, 2026

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 50%)

See analysis details on SonarQube Cloud

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.

1 participant