Skip to content

RedisCluster doesn't support dbs other than 0?  #2450

Closed
@jarrington-supernatural

Description

@jarrington-supernatural

Version: What redis-py and what redis version is the issue happening on?
4.3.4 and 4.4.0rc3

Platform: What platform / version? (For example Python 3.5.1 on Windows 7 / Ubuntu 15.10 / Azure)
Python 3.9, WSL2 Ubuntu

Description: Description of your issue, stack traces from errors and code that reproduces the issue
We are migrating from a single redis host to a redis cluster in elasticache. We are already using several dbs in the target instance and want to continue to do so. According to the RedisCluster class, we should be able to use a db other than 0 to connect. See https://github.com/redis/redis-py/blob/v4.4.0rc3/redis/cluster.py#L405-L413

However, actually using any db other than 0 results in an exception. See https://github.com/redis/redis-py/blob/v4.4.0rc3/redis/cluster.py#L512-L516

Is this intentional or am I missing something?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions