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
{{ message }}
Repository navigation
[Bug] Deadlock in DrainingHashesTracker due to synchronized methods #23848
I searched in the issues and found nothing similar.
Read release policy
I understand that unsupported versions don't get bug fixes. I will attempt to reproduce the issue on a supported version of Pulsar client and Pulsar broker.
Version
Pulsar 4.0.1
Minimal reproduce step
Exact steps to reproduce aren't yet confirmed.
This problem was faced in a test. The problem is that there isn't a jstack -l <PID> thread dump of the deadlocked state. I have a heap dump, but since heap dumps don't contain exactly the same information as a thread dump about threads, it's hard to find out the exact reason why the dead lock happens. There are multiple blocked threads which indicates a dead lock:
What did you expect to see?
No dead locks.
What did you see instead?
There are multiple threads in blocked state which indicates a dead lock.
I'm planning to first reproduce the issue and then addressing that. One improvement in DrainingHashesTracker is to replace synchronized with the use of a read-write lock.
changed the title [-][Bug] Potential deadlock in DrainingHashesTracker due to synchronized methods[/-][+][Bug] Deadlock in DrainingHashesTracker due to synchronized methods[/+]on Jan 15, 2025
Activity
lhotari commentedon Jan 14, 2025
I'm planning to first reproduce the issue and then addressing that. One improvement in DrainingHashesTracker is to replace
synchronizedwith the use of a read-write lock.[-][Bug] Potential deadlock in DrainingHashesTracker due to synchronized methods[/-][+][Bug] Deadlock in DrainingHashesTracker due to synchronized methods[/+]