dielhennr opened a new pull request #10480:
URL: https://github.com/apache/kafka/pull/10480


   The KafkaRaftClient has a field for the BatchAccumulator that is only used 
and set when it is the leader. In other cases, leader specific information was 
stored in LeaderState. In a recent change EpochState, which LeaderState 
implements, was changed to be a Closable. QuorumState makes sure to always 
close the previous state before transitioning to the next state. This redesign 
was used to move the BatchAccumulator to the LeaderState and simplify some of 
the handling in KafkaRaftClient.
   


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

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to