Nicklee007 opened a new pull request, #16985: URL: https://github.com/apache/pulsar/pull/16985
### Motivation This PR is part of work of cherry-pick https://github.com/apache/pulsar/pull/16837 to branch 2.8 Release memory limit currentUsage in failPendingBatchMessages and avoid duplicate semaphore release in batchMessageAndSend. ### Modifications 1. Release memory limit currentUsage in failPendingBatchMessages ; 2. delete duplicate semaphore release in batchMessageAndSend; 3. fix unit test; ### Documentation - [X] `doc-not-needed` (Please explain why) -- 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]
