chia7712 opened a new pull request #9796:
URL: https://github.com/apache/kafka/pull/9796


   issue: https://issues.apache.org/jira/browse/KAFKA-10498
   
   Currently the consumer has logic to detect truncations (as a result of 
unclean leader election for example) using the OffsetsForLeaderEpoch API. It is 
a rather cumbersome and expensive process since we have to check for the need 
to send this request on every poll(). We should be able to do better now that 
KIP-595 has built support for truncation detection directly into the `Fetch` 
protocol. This should allow us to skip validation when we know that the `Fetch` 
version is high enough.
   
   ### 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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to