You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Diggory James Joshua Blake (Jira)" <ji...@apache.org> on 2020/02/09 18:35:00 UTC

[jira] [Created] (KAFKA-9529) Request Header v0 inconsistent between documentation and implementation

Diggory James Joshua Blake created KAFKA-9529:
-------------------------------------------------

             Summary: Request Header v0 inconsistent between documentation and implementation
                 Key: KAFKA-9529
                 URL: https://issues.apache.org/jira/browse/KAFKA-9529
             Project: Kafka
          Issue Type: Bug
          Components: documentation
            Reporter: Diggory James Joshua Blake


The [protocol documentation|https://kafka.apache.org/protocol#protocol_messages] specifies Request Header v0 like this:
{code:java}
Request Header v0 => request_api_key request_api_version correlation_id 
  request_api_key => INT16
  request_api_version => INT16
  correlation_id => INT32
{code}
With the `client_id` field only being added in Request Header v1.

However, Kafka will error on any request without the `client_id` even if the client sets the API version to zero. Also, the JSON files specify that `client_id` has been present since version zero:

[https://github.com/apache/kafka/blob/e24d0e22abb0fb3e4cb3974284a3dad126544584/clients/src/main/resources/common/message/RequestHeader.json#L27]

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)