It seems that Fetch Response V1 is not correctly documented:

https://cwiki.apache.org/confluence/display/KAFKA/A+Guide+To+The+Kafka+Protocol

It says the response should be:

FetchResponse => [TopicName [Partition ErrorCode HighwaterMarkOffset
MessageSetSize MessageSet]] ThrottleTime

But it actually is (as of Kafka 0.9.0.1):

FetchResponse => ThrottleTime [TopicName [Partition ErrorCode
HighwaterMarkOffset MessageSetSize MessageSet]]

e.g. ThrottleTime comes first after the response header, not last.

As a client library developer (https://github.com/oleksiyk/kafka) I would
like to know if its an error in documentation or in Kafka server?

Thanks!

-- 
Oleksiy Krivoshey

Reply via email to