You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when I run a scan ( with scan_iter helper ) on a redis cluster with require_full_coverage at false
and a node is missing then the scan command fail
File "/home/raphael/REPO/xx/src/redis_clean.py", line 27, in main
keys_to_delete = [x for x in r_client.scan_iter(match_regex, 100)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/raphael/REPO/xx/src/redis_clean.py", line 27, in <listcomp>
keys_to_delete = [x for x in r_client.scan_iter(match_regex, 100)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/raphael/REPO/xx/venv/lib/python3.11/site-packages/redis/commands/cluster.py", line 793, in scan_iter
cursors, data = self.scan(match=match, count=count, _type=_type, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/raphael/REPO/xx/venv/lib/python3.11/site-packages/redis/commands/core.py", line 3017, in scan
return self.execute_command("SCAN", *pieces, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/raphael/REPO/xx/venv/lib/python3.11/site-packages/redis/cluster.py", line 1115, in execute_command
raise e
File "/home/raphael/REPO/xx/venv/lib/python3.11/site-packages/redis/cluster.py", line 1101, in execute_command
res[node.name] = self._execute_command(node, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/raphael/REPO/xx/venv/lib/python3.11/site-packages/redis/cluster.py", line 1174, in _execute_command
raise e
File "/home/raphael/REPO/xx/venv/lib/python3.11/site-packages/redis/cluster.py", line 1144, in _execute_command
connection = get_connection(redis_node, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/raphael/REPO/xx/venv/lib/python3.11/site-packages/redis/cluster.py", line 51, in get_connection
return redis_node.connection or redis_node.connection_pool.get_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/raphael/REPO/xx/venv/lib/python3.11/site-packages/redis/connection.py", line 1074, in get_connection
connection.connect()
File "/home/raphael/REPO/xx/venv/lib/python3.11/site-packages/redis/connection.py", line 283, in connect
raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error 113 connecting to 172.20.0.4:6379. No route to host.
I would expect the command to run in best effort on available nodes.
The text was updated successfully, but these errors were encountered:
Version: 5.1.1
Platform: python 3.11
Description:
when I run a scan ( with scan_iter helper ) on a redis cluster with require_full_coverage at false
and a node is missing then the scan command fail
I would expect the command to run in best effort on available nodes.
The text was updated successfully, but these errors were encountered: