lbradstreet opened a new pull request #9219: URL: https://github.com/apache/kafka/pull/9219
The leader epoch cache is incorrectly recovered for epoch 0 as the assignment is skipped when epoch == 0. This check was likely intended to prevent negative epochs from being applied or there was an assumption that epochs started at 1. A test has been added to LogSegmentTest to show the LogSegment recovery path works for the epoch cache. This was a test gap. ---------------------------------------------------------------- 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