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

redis (error) ASKING 12345 1.2.3.4:6380 #13342

Open
CCTV-six opened this issue Jun 13, 2024 · 0 comments
Open

redis (error) ASKING 12345 1.2.3.4:6380 #13342

CCTV-six opened this issue Jun 13, 2024 · 0 comments

Comments

@CCTV-six
Copy link

Describe the bug

(error) ASKING 12345 1.2.3.4:6380

To reproduce

  1. Build a Redis cluster and make it run stably for a period of time to ensure that data is distributed to different hash slots.
  2. Use Redis's FUSTER SETSLOT command to manually trigger the migration process of a hash slot. For example, migrating hash slot 12345 from one node to another.
    3.During the migration process, try using a Redis client that does not support cluster redirection to access the key on the hash slot being migrated.

Expected behavior

In the Redis cluster, when the hash slot is being migrated, the client should be able to handle ASKING redirection correctly, automatically connect to the target node, and re execute the command.

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

No branches or pull requests

1 participant