Open
Description
Version: 5.0.1
Platform:
Python 3.11.5(3.11.5 (main, Sep 4 2023, 15:30:52) [GCC 10.2.1 20210110])
Description:
Since 5.0.1, we noticed a significant increase in No connection available.
errors from redis. We are using cashews (6.3.0) + redis-py for request caching for our fastapi application. We don't experience this with 5.0.0.
Stack trace:
CancelledError: null
File "redis/asyncio/connection.py", line 1170, in get_connection
async with self._condition:
File "asyncio/locks.py", line 15, in __aenter__
await self.acquire()
File "asyncio/locks.py", line 114, in acquire
await fut
TimeoutError: null
File "redis/asyncio/connection.py", line 1169, in get_connection
async with async_timeout(self.timeout):
File "asyncio/timeouts.py", line 111, in __aexit__
raise TimeoutError from exc_val
ConnectionError: No connection available.
File "cashews/backends/redis/client.py", line 26, in execute_command
return await super().execute_command(command, *args, **kwargs)
File "redis/asyncio/client.py", line 601, in execute_command
conn = self.connection or await pool.get_connection(command_name, **options)
File "redis/asyncio/connection.py", line 1174, in get_connection
raise ConnectionError("No connection available.") from err