Details
Description
In LeaderEpochFileCache.endOffsetFor() , we have the following code.
if (requestedEpoch == latestEpoch) {
leo().messageOffset
In the case when the requestedEpoch is UNDEFINED_EPOCH and latestEpoch is also UNDEFINED_EPOCH, we return leo. This will cause the follower to truncate to a wrong offset. If requestedEpoch is UNDEFINED_EPOCH, we need to request UNDEFINED_EPOCH_OFFSET.
Attachments
Issue Links
- links to