You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Manikumar (JIRA)" <ji...@apache.org> on 2018/06/12 16:21:00 UTC
[jira] [Resolved] (KAFKA-1181) Consolidate brokerList and
topicPartitionInfo in BrokerPartitionInfo
[ https://issues.apache.org/jira/browse/KAFKA-1181?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Manikumar resolved KAFKA-1181.
------------------------------
Resolution: Auto Closed
Closing this as BrokerPartitionInfo class removed in KAFKA-6921
> Consolidate brokerList and topicPartitionInfo in BrokerPartitionInfo
> --------------------------------------------------------------------
>
> Key: KAFKA-1181
> URL: https://issues.apache.org/jira/browse/KAFKA-1181
> Project: Kafka
> Issue Type: Bug
> Reporter: Guozhang Wang
> Priority: Major
>
> brokerList in BrokerConfig is used to send the TopicMetadataRequest to known brokers, and the broker id always starts at 0 and increase incrementally, AND it is never updated in BrokerPartitionInfo even after the topic metadata response has been received.
> The real broker ids info is actually stored in topicPartitionInfo: HashMap[String, TopicMetadata]. Which is refreshed with topic metadata response. Therefore we could see different broker ids from logging entris reporting failues of metadata request and failures of produce requests.
> The solution here is to consolidate these two, reading the initial broker list but keep it refreshed with topic metadata responses.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)