baomingyu opened a new pull request #11965:
URL: https://github.com/apache/pulsar/pull/11965
Fixes #11964
*Explain here the context, and why you're making that change. What is the
problem you're trying to solve.*
In key_shared mode. Ack message will hold
PersistentSubscription(synchronized lock ) --> ManagedCursorImpl(lock) -> to
try get PersistentStickyKeyDispatcherMultipleConsumers(synchronized) in
asyncDelete function and when individualDeletedMessages is empty way. Same time
, other Thread Ack message when individualDeletedMessages is not empty maybe
hold PersistentStickyKeyDispatcherMultipleConsumers(synchronized) to try get
ManagedCursorImpl(lock) for read more entries. deadlock will happen.
### Modifications
change unlock before callback ,in asyncDelete function of ManagedCursorImpl.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]