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

   This is the protocol and server changes to populate the fields in KIP-951. 
On NOT_LEADER_OR_FOLLOWER errors in both FETCH and PRODUCE the new leader ID 
and epoch are retrieved from the local cache through ReplicaManager and 
included in the response, falling back to the metadata cache if they are 
unavailable there. The endpoint for the new leader is retrieved from the 
metadata cache. The new fields are all optional (tagged) and an IBP bump is not 
required.
   
   
https://cwiki.apache.org/confluence/display/KAFKA/KIP-951%3A+Leader+discovery+optimisations+for+the+client
   
   ### Testing
   Benchmarking described here 
https://cwiki.apache.org/confluence/display/KAFKA/KIP-951%3A+Leader+discovery+optimisations+for+the+client#KIP951:Leaderdiscoveryoptimisationsfortheclient-BenchmarkResults
   `./gradlew core:test --tests kafka.server.KafkaApisTest`
   
   ### 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