You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "huxihx (JIRA)" <ji...@apache.org> on 2018/02/09 11:49:00 UTC

[jira] [Created] (KAFKA-6550) UpdateMetadataRequest should be lazily created

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)