Skip to content

Doesn't work with new sarama #161

@Serhii1011010

Description

@Serhii1011010

Steps to reproduce:

1 clone this repository
2 go to _examples/sarama dir
3 modify it to be up to date
4 go run main.go

everything is fine so far

5 change go.mod's sarama version to, say, v1.26.1
6 get out of memory error

The error is happening here https://github.com/travisjeffery/jocko/blob/master/protocol/decoder.go#L277 because this conversion https://github.com/travisjeffery/jocko/blob/master/protocol/decoder.go#L266 makes n to be 4294967295, which is probably because sarama changed endianness in their protocol.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions