szetszwo commented on PR #990:
URL: https://github.com/apache/ratis/pull/990#issuecomment-1868020746

   > ...  we may consider releasing zero-copy buffers much earlier than cache 
evict. The ability to release all zero copy buffers up to a certain log index 
seems to be crucial.
   
   Let's don't mix the buffer releasing logic with the `RaftLog` index.  Why 
the releasing buffer at index 10 has any relation to the buffer at index 11?
   
   Use ref count described in 
https://github.com/apache/ratis/pull/990#issuecomment-1863647417 can solve the 
problem.  Netty uses a similar approach which works very well.


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