Nicklee007 opened a new pull request, #16915:
URL: https://github.com/apache/pulsar/pull/16915
### Motivation
Release memory usage when invalid message, the related PR #16835 only
release the memory usage, but the semaphore also need release in here.
The fixed unit test can reproduce it, which only `enableBatching` can invoke
the `createOpSendMsg` in `BatchMessageContainerImpl`.
### Modifications
1. add semaphore release;
2. 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]