gabriellefu opened a new pull request, #24115:
URL: https://github.com/apache/kafka/pull/24115
When a call needs a node that is not in the metadata, such as a broker
id for describeConfigs or describeLogDirs, or the controller, the admin
client requests a metadata update and leaves the call pending. If the
Metadata response succeeds but still lacks that node, the call requests
another update. AdminMetadataManager waits a fixed retry.backoff.ms
between these updates, so the client sends a Metadata request every
100 ms by default until the call times out.
This patch passes retry.backoff.max.ms to AdminMetadataManager and
applies exponential backoff with jitter while successive responses have
the same nodes, as Metadata already does for producers and consumers.
The backoff resets when the nodes change, when a metadata update fails,
or when the previous update is older than metadata.max.age.ms. The
controller is not compared, since brokers return a random alive broker
as the controller.
Failed metadata calls are not affected, since they already back off
through the call retry. When a pending call times out is also unchanged.
--
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]