Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: FetchResponse:ThrottleTime is at the front, not the end of the payload

...

Code Block
v0
FetchResponse => [TopicName [Partition ErrorCode HighwaterMarkOffset MessageSetSize MessageSet]]
  TopicName => string
  Partition => int32
  ErrorCode => int16
  HighwaterMarkOffset => int64
  MessageSetSize => int32
 
v1 (supported in 0.9.0 or later) and v2 (supported in 0.10.0 or later)
FetchResponse => ThrottleTime [TopicName [Partition ErrorCode HighwaterMarkOffset MessageSetSize MessageSet]]
  ThrottleTime => int32
  TopicName => string
  Partition => int32
  ErrorCode => int16
  HighwaterMarkOffset => int64
  MessageSetSize => int32
  ThrottleTime => int32
Duration in milliseconds for which the request was throttled due to quota violation (Zero if the request did not violate any quota.)

Field

Description

ThrottleTimeDuration in milliseconds for which the request was throttled due to quota violation. (Zero if the request did not violate any quota.)

TopicName

The name of the topic this response entry is for.

Partition

The id of the partition this response is for.

HighwaterMarkOffset

The offset at the end of the log for this partition. This can be used by the client to determine how many messages behind the end of the log they are.

MessageSetSize

The size in bytes of the message set for this partition

MessageSet

The message data fetched from this partition, in the format described above.

ThrottleTime

.

Fetch Response v1 only contains message format v0.

...