lugency opened a new pull request, #1720:
URL: https://github.com/apache/ratis/pull/1720

   Assisted by OpenAI Codex.
   
   ## What changes were proposed in this pull request?
   
   - Fix repeated cache misses in `FollowerInfoMap`. Since the map has no entry 
for the leader, `LeaderStateImpl.isSameSize()` now excludes the leader from the 
expected follower count when the configuration includes it.
   - Synchronize `FollowerInfoMap.put()` and invalidate the cache when it 
replaces an existing entry. 
   
   ## What is the link to the Apache JIRA?
   
   [RATIS-2843](https://issues.apache.org/jira/browse/RATIS-2843)
   
   ## How was this patch tested?
   
   Added and ran `TestFollowerInfoMap`. 


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