gaurav-narula opened a new pull request, #17434: URL: https://github.com/apache/kafka/pull/17434
KAFKA-16534 introduced a change to send UpdateVoterRequest every `3 * fetchTimeoutMs`. It also introduced a regression where if the voter nodes do not need an update then `updateVoterTimer` wasn't reset. This resulted in a busy-loop in the KraftClient's `poll()` method resulting in high CPU usage. This PR modifies the conditions in `pollFollowerAsVoter` to reset `updateVoterTimer` appropriately. ### 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]
