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

   > That's the reason why we need to keep the buffer sorted by log index, so 
if some entry is missed because evictCache happens before processClientRequest, 
it'll be caught by the next evictCache.
   
   Consider `evictCache` happens before `processClientRequest` below:
   1. evictCache(`LogSegment(11, 20)`) -> release(groupId, 11, 20) 
   2.  processClientRequest(`reply(20)`) -> watch(`reply(20)`) -> group.put(20)
   
   How could 20 be released later on?


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