lhotari opened a new pull request #11407:
URL: https://github.com/apache/pulsar/pull/11407


   ### Motivation
   
   - Netty ByteBufs for commit and abort markers currently leak direct memory
   
   - `ManagedLedgerImpl.asyncAddEntry` will increase the reference count by 
calling `.retain()` for the marker message's ByteBuf (in `OpAddEntry.create`) 
and therefore the reference count has to be decreased with the call to 
`.release()` after  the `asyncAddEntry` call.
   
   ### Modifications
   
   - call `.release()` in try-finally block for commit and abort markers after 
the `asyncAddEntry` call


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


Reply via email to