dielhennr commented on a change in pull request #10480: URL: https://github.com/apache/kafka/pull/10480#discussion_r620833566
########## File path: raft/src/test/java/org/apache/kafka/raft/internals/BatchAccumulatorTest.java ########## @@ -65,6 +66,34 @@ ); } + @Test + public void testLeaderChangeMessageWritten() { Review comment: @hachikuji Why would 2 ever happen in practice? The accumulator is created and then the leaderChangeMessage is written right after. -- 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