m1a2st opened a new pull request, #16855: URL: https://github.com/apache/kafka/pull/16855
Jira: https://issues.apache.org/jira/browse/KAFKA-17297 In old code `leaderId` and `oldLeaderId` all use `randomReplicaId()`, thus it will be flaky when `leaderId` is equals `oldLeaderId`. When `KafkaRaftClient` initialize it will find `leaderId` and `oldLeaderId`, so the leaderEpoch will become to three ### 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
