Skip to content
This repository was archived by the owner on Jan 9, 2024. It is now read-only.
This repository was archived by the owner on Jan 9, 2024. It is now read-only.

Parsing of redis url:s with database in it fails  #456

@Grokzen

Description

@Grokzen

If you pass in "redis://redis:6379/2" with a database parameter into the parse_url version in this lib it will fail out as the DB will be set implicitly and that will propegate automatically up to redis-py connection pool that will attempt to send SELECT command to redis when connection runs on_connect method and SELECT command is not supported when running a cluster node.

The proposed solution is to either strip out DB from the url before parsing it, or to hard fail when this is processed.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions