Skip to content

Commit

Permalink
fix: fill in the Fetch{Request,Response} protocol
Browse files Browse the repository at this point in the history
In order to consume zstd-compressed records the consumer needs to send
and receive version 10 FetchRequest/FetchResponses, but they need to do
so in a well-formed manner that adheres to the encoding format.

Ref: https://kafka.apache.org/protocol

Signed-off-by: Dominic Evans <dominic.evans@uk.ibm.com>
  • Loading branch information
dnwe authored and d1egoaz committed Jan 21, 2020
1 parent eca4c40 commit c394c83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions fetch_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ func (r *FetchRequest) version() int16 {
return r.Version
}

// FIXME: get these correct
func (r *FetchRequest) requiredVersion() KafkaVersion {
switch r.Version {
case 0:
Expand Down
1 change: 1 addition & 0 deletions fetch_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@ func (r *FetchResponse) version() int16 {
return r.Version
}

// FIXME: get these correct
func (r *FetchResponse) requiredVersion() KafkaVersion {
switch r.Version {
case 0:
Expand Down

0 comments on commit c394c83

Please sign in to comment.