redis / redis/redis-om-python

Redis cluster Migrator not working

Open
#408 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.