-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Misdetection of xerial snappy on RedPanda #2414
Comments
It looks to me like the version and compat fields are (incorrectly) encoded in little-endian (1 => |
Yea, looks like librdkafka only checks the SNAPPY magic string and ignores the version + compatibility fields. That's technically wrong, but it does avoid crashing on the strictly incorrect encoding from redpanda. https://github.com/confluentinc/librdkafka/blob/a09ccd9ffb3e4711dedf99aceb92e7056a7a9724/src/rdkafka_msgset_reader.c#L324 |
Dropped version + compat validation in #2483 |
We consume messages from a Kafka topic from RedPanda that are compressed with Snappy. Apparently, RedPanda is doing something not completely standard or with a newer format version, since
kafka.codec._detect_xerial_stream
fails to detect xerial, returnsFalse
, and thesnappy_decode
crashes withsnappy.UncompressError: Error while decompressing: invalid input
. Here are the first few bytes of a samplepayload
:confluence-kafka works with RedPanda without a problem.
The text was updated successfully, but these errors were encountered: