You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version:
redis-py 4.5.5 used in a multi-threads program
Platform:
Python 3.9.7 on Linux 5.10 aarch64
Description:
At times, invoking the 'subscribe' function may result in a hang, and based on the stack analysis, it appears that a deadlock might be occurring.
...
Thread 0x0000ffffaca0f150 (most recent call first):
File "/root/miniconda3/lib/python3.9/site-packages/redis/connection.py", line 1497 in release # try lock self._lock again
File "/root/miniconda3/lib/python3.9/site-packages/redis/client.py", line 1426 in reset
File "/root/miniconda3/lib/python3.9/site-packages/redis/client.py", line 1418 in __del__
File "/root/miniconda3/lib/python3.9/site-packages/redis/connection.py", line 949 in __init__
File "/root/miniconda3/lib/python3.9/site-packages/redis/connection.py", line 1492 in make_connection
File "/root/miniconda3/lib/python3.9/site-packages/redis/connection.py", line 1452 in get_connection # with self._lock
File "/root/miniconda3/lib/python3.9/site-packages/redis/client.py", line 1469 in execute_command
File "/root/miniconda3/lib/python3.9/site-packages/redis/client.py", line 1634 in subscribe
...
I have same deadlock problem with redis as celery broker
', ' File "/usr/local/lib/python3.11/site-packages/redis/client.py", line 2114, in execute
conn = self.connection_pool.get_connection("MULTI", self.shard_hint)
', ' File "/usr/local/lib/python3.11/site-packages/redis/connection.py", line 1456, in get_connection
connection = self.make_connection()
', ' File "/usr/local/lib/python3.11/site-packages/redis/connection.py", line 1496, in make_connection
return self.connection_class(**self.connection_kwargs)
', ' File "/usr/local/lib/python3.11/site-packages/redis/connection.py", line 960, in __init__
super().__init__(**kwargs)
', ' File "/usr/local/lib/python3.11/site-packages/redis/connection.py", line 647, in __init__
self.retry = Retry(NoBackoff(), 1)
', ' File "/usr/local/lib/python3.11/site-packages/redis/backoff.py", line 42, in __init__
super().__init__(0)
', ' File "/usr/local/lib/python3.11/site-packages/redis/client.py", line 1418, in __del__
self.reset()
', ' File "/usr/local/lib/python3.11/site-packages/redis/client.py", line 1426, in reset
self.connection_pool.release(self.connection)
', ' File "/usr/local/lib/python3.11/site-packages/redis/connection.py", line 1501, in release
with self._lock:
Version:
redis-py 4.5.5 used in a multi-threads program
Platform:
Python 3.9.7 on Linux 5.10 aarch64
Description:
At times, invoking the 'subscribe' function may result in a hang, and based on the stack analysis, it appears that a deadlock might be occurring.
Client is created with:
My program:
The text was updated successfully, but these errors were encountered: