Redis cluster Migrator not working
Open
Nobody has claimed this yet.
bug
cluster
- Dominant language
- Python
- Stars
- 1.3k
- Forks
- 128
- PR merge metrics
- No merged PRs in 30d
Description
from redis.cluster import RedisCluster as Redis
redis_userdb = Redis(host='xxx.yyy.zzz.xx', port=xxxx, password='password)
print(redis_userdb.get_nodes())
I able to write data on all cluster node without any issue but not able to run Migrator().run()
print(Users.get("user1"))
Migrator().run()
ResponseError: Unknown Index name
Traceback (most recent call last):
File "/home/ubuntu/project/.venv/lib/python3.8/site-packages/redis/cluster.py", line 1074, in _execute_command
response = redis_node.parse_response(connection, command, **kwargs)
File "/home/ubuntu/project/.venv/lib/python3.8/site-packages/redis/client.py", line 1254, in parse_response
response = connection.read_response()
File "/home/ubuntu/project/.venv/lib/python3.8/site-packages/redis/connection.py", line 839, in read_response
raise response
redis.exceptions.ResponseError: Unknown Index name
MovedError
Traceback (most recent call last):
File "/home/ubuntu/project/.venv/lib/python3.8/site-packages/redis/cluster.py", line 1074, in _execute_command
response = redis_node.parse_response(connection, command, **kwargs)
File "/home/ubuntu/project/.venv/lib/python3.8/site-packages/redis/client.py", line 1254, in parse_response
response = connection.read_response()
File "/home/ubuntu/project/.venv/lib/python3.8/site-packages/redis/connection.py", line 839, in read_response
raise response
redis.exceptions.MovedError: 13099
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The report names RedisCluster and Migrator().run(), but no repository file or test. Start by reproducing the failure with the shown cluster setup, then trace Migrator and RedisCluster command routing around the Unknown Index and MovedError responses. Done means migration completes on a Redis cluster without these errors, with a regression test covering the case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, redis
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100