huxihx created KAFKA-6550:
-----------------------------
Summary: UpdateMetadataRequest should be lazily created
Key: KAFKA-6550
URL: https://issues.apache.org/jira/browse/KAFKA-6550
Project: Kafka
Issue Type: Improvement
Components: controller
Affects Versions: 1.0.0
Reporter: huxihx
Assignee: huxihx
In ControllerBrokerRequestBatch.sendRequestsToBrokers, there is no need to
eagerly construct the UpdateMetadataRequest.Builder since sometimes
updateMetadataRequestBrokerSet is actually empty. In those cases, we should
defer the construction to the time when we really need them.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)