Skip to content

Connection regression since 7.1.0 #4026

Description

@carl-mastrangelo

I was trying to update from 7.1.0 to 7.4.0 and noticed that our unit tests stopped passing with the new version. Somewhere in between the two versions, connecting to a Redis server started taking a very long time, to the point that the tests timed out. Looking through what changed in a debugger, it appears that some connection retry and backoff was added.

Our code attempts to connect to a redis server, and if unavailable, logs an exception and continues on. The unit tests don't start a redis server and thus will never successfully connect. However, since 7.4.0, it appears there is now a lot more retrying and sleeping, which is not desirable. We also go out of our way to try and bound the amount of time spent connecting:

conn = Redis(port=redis_port(), socket_timeout=2.0, socket_connect_timeout=2.0)

I feel like this behavior is a regression, since the behavior was predictable and fast.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions