This is a submission for DEV's Summer Bug Smash: Clear the Lineup powered by Sentry.

Project Overview

redis-py is the Python client for Redis. Its asynchronous cluster implementation maintains a per-node connection pool with an in-use set, a free queue, and optional max_connections capacity.

The bug was not a leaked connection or a deadlock. It was one event-loop turn in which a usable pool slot existed in neither place.

Bug Fix or Performance Improvement