codelipenghui opened a new pull request #9552:
URL: https://github.com/apache/pulsar/pull/9552


   Fixes #9540
   
   ### Motivation
   
   Async the DLQ process. Currently, the DLQ process is a synchronous process. 
Since we process the DLQ in the timer and the timer will acquire a write lock 
during writing the data to the DLQ, the data writing process will use the IO 
thread and the messages that add to the UnAckedMessageTracker also use the IO 
thread and if also acquire the same write lock. So this will result in a dead 
lock.
   
   ### Modifications
   
   Make the DLQ process async.
   
   ### Verifying this change
   
   The DeadLetterTopicTest and the RetryTopicTest can cover this change.
   
   ### Does this pull request potentially affect one of the following parts:
   
   *If `yes` was chosen, please highlight the changes*
   
     - Dependencies (does it add or upgrade a dependency): (no)
     - The public API: (no)
     - The schema: (no)
     - The default values of configurations: (no)
     - The wire protocol: (no)
     - The rest endpoints: (no)
     - The admin cli options: (no)
     - Anything that affects deployment: (no)
   
   ### Documentation
   
     - Does this pull request introduce a new feature? (no)
   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to