[ https://issues.apache.org/jira/browse/KAFKA-473?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yang Ye updated KAFKA-473: -------------------------- Attachment: kafka_473_v1.diff 1. create a utility function "getTopicMetadata" in Utils.scala to get topic metadata, and let the BrokerPartitionInfo and leaderFinderThread use it 2. a function getConsumerTopicMaps() in zkUtils() is never used, remove it. 3. potentially still use the function in consumer rebalancing > Use getMetadata Api in ZookeeperConsumerConnector > ------------------------------------------------- > > Key: KAFKA-473 > URL: https://issues.apache.org/jira/browse/KAFKA-473 > Project: Kafka > Issue Type: Bug > Components: core > Reporter: Jun Rao > Assignee: Yang Ye > Priority: Blocker > Labels: newbie, optimization > Fix For: 0.8 > > Attachments: kafka_473_v1.diff > > Original Estimate: 48h > Remaining Estimate: 48h > > Currently, ZookeeperConsumerConnector gets topic metadata from ZK directly. > It's better to use the getMetadata Api since it's batched. This is especially > helpful if the consumer client is in a different data center. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira