brandboat opened a new pull request, #21435: URL: https://github.com/apache/kafka/pull/21435
When a broker loses leadership of a __consumer_offsets partition while a write batch is pending, the coordinator unload process fails because freeCurrentBatch() attempts to access partition writer configuration which throws NOT_LEADER_OR_FOLLOWER exception. This commit fixes the issue by using cached maxBatchSize instead of querying log config max message size in `freeCurrentBatch`. Reviewers: Sean Quah <[email protected]>, Chia-Ping Tsai <[email protected]>, David Jacot <[email protected]> -- 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]
