Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unlock the write lock of the UnAckedMessageTracker before call redeli…
…verUnacknowledgedMessages (apache#10768) The deadlock will happen in following steps: 1. The client internal thread got the consumer instance lock when call internalBatchReceiveAsync 2. The timer thread got the write lock of the UnAckedMessageTracker and then waiting on the consumer instance lock when call redeliverUnacknowledgedMessages 3. The client internal thread try to get the write lock of the UnAckedMessageTracker when adding unacked messages The deadlock happens. The fix is ensure the timer thread unlock the write lock before call redeliverUnacknowledgedMessages
- Loading branch information