kamalcph opened a new pull request, #14787:
URL: https://github.com/apache/kafka/pull/14787

   `findHighestRemoteOffset` does not take into account the leader-epoch end 
offset. This can cause log divergence between the local and remote log segments 
when there is unclean leader election.
   
   To handle it correctly, the logic to find the highest remote offset can be 
updated to:
   
   ```
   find-highest-remote-offset = min(end-offset-for-epoch-in-the-checkpoint, 
highest-remote-offset-for-epoch)
   ```
   
   Discussion thread: 
https://github.com/apache/kafka/pull/14004#discussion_r1266864272
   
   ### Committer Checklist (excluded from commit message)
   - [ ] Verify design and implementation 
   - [ ] Verify test coverage and CI build status
   - [ ] Verify documentation (including upgrade notes)
   


-- 
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: jira-unsubscr...@kafka.apache.org

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

Reply via email to