lianetm opened a new pull request, #22768: URL: https://github.com/apache/kafka/pull/22768
Improve to avoid unnecessary double rebalance on the classic consumer when a replica is bounced. Before this PR, when a replica is bounced it resolves to an empty node (no host) with a null rack on the consumer metadta view. The consumer's metadata comparison treated that as a rack change (rack1 to null) and triggered a rebalance, then a second one when the broker came back (null to rack1). This affects the classic consumer, every assignor, when client.rack is configured. This PR improves the rack comparison to track racks by replica id and treat an unavailable replica (empty node) as having an unknown rack rather than a changed one: two metadata snapshots are equivalent if they expose the same set of racks for available replicas, tolerating a missing/unknown rack only when the replica it belongs to is unavailable. -- 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]
