Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The various request and response messages will be described below.

Here is a mapping of the current ApiKeys

API

ApiKey

ProduceKey

0

FetchKey

1

OffsetsKey

2

MetadataKey

3

LeaderAndIsrKey

4

StopReplicaKey

5

OffsetCommitKey

6

OffsetFetchKey

7

Responses
Code Block
Response => CorrelationId ResponseMessage
CorrelationId => int32
ResponseMessage => MetadataResponse | ProduceResponse | FetchResponse | OffsetResponse | OffsetCommitResponse | OffsetFetchResponse

...

API name

ApiKey Value

ProduceRequest

0

FetchRequest

1

OffsetRequest

2

MetadataRequest

3

LeaderAndIsrRequest

4

StopReplicaRequest

5

OffsetCommitRequest

6

OffsetFetchRequest

7

Error Codes

We use numeric codes to indicate what problem occurred on the server. These can be translated by the client into exceptions or whatever the appropriate error handling mechanism in the client language. Here is a table of the error codes currently in use:

...