Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: The leading number-of-brokers field is implicit in the fact that it is an array

...

Since there may be many topics the client can give an optional list of topic names in order to only return metadata for a subset of topics.

The metdata metadata returned is at the partition level, but grouped together by topic for convenience and to avoid redundancy. For each partition the metadata contains the information for the leader as well as for all the replicas and the list of replicas that are currently in-sync.

...

Code Block
MetadataResponse => [Broker][TopicMetadata]
  Number of brokers
  BrokersBroker => NodeId Host Port  (any number of brokers may be returned)
  	NodeId => int32
  	Host => string
  	Port => int32
  TopicMetadata => TopicErrorCode TopicName [PartitionMetadata]
  	TopicErrorCode => int16
  PartitionMetadata => PartitionErrorCode PartitionId Leader Replicas Isr
  	PartitionErrorCode => int16
  	PartitionId => int32
  	Leader => int32
  	Replicas => [int32]
  	Isr => [int32]

...