AndrewJSchofield opened a new pull request, #24354: URL: https://github.com/apache/kafka/pull/24354
The share consumer requested metadata refreshes after leadership changes in two cases where they were not needed. First, when a broker returned NOT_LEADER_OR_FOLLOWER or FENCED_LEADER_EPOCH along with the new leader, and the information was not applied to the metadata because its epoch was not newer than the one it already held, a refresh was requested even if the metadata already had the same leader. A refresh is now requested only if the metadata's leader differs from the one the broker returned. Second, a ShareAcknowledge response with one of these errors always requested a refresh, even when it included the new leader. It now requests a refresh only when the response does not include the new leader, which matches the handling of ShareFetch responses. -- 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]
