Open kuza55 opened 2 months ago
I'm having the same issue here.
A simple method to reproduce it is to connect to a redis cluster through the internet (AWS Elasticache for example) and then turn your wifi/ethernet off and then enable it again, the error won't stop and it will raise RedisClusterException in a infinite loop.
Version: 5.1.2
Platform: Ubuntu 22.04
Description:
RedisCluster becomes unrecoverable and crashes if all the nodes timeout at the same time. If you have a RedisCluster with 1 node, then this is particularly likely.
The crash that happens is:
I think this is because of this line where the node is removed, expecting that we will connect to another node and recover the cluster instances from there: https://github.com/redis/redis-py/blob/07fc339b4a4088c1ff052527685ebdde43dfc4be/redis/asyncio/cluster.py#L806
This bug seems similar to, but distinct from https://github.com/redis/redis-py/issues/3130
Also seems related to https://github.com/redis/redis-py/issues/2472