Skip to content

Misdetection of xerial snappy on RedPanda #2414

Closed
@vmarkovtsev

Description

@vmarkovtsev

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, returns False, and the snappy_decode crashes with snappy.UncompressError: Error while decompressing: invalid input. Here are the first few bytes of a sample payload:

\x82SNAPPY\x00\x01\x00\x00\x00\x01\x00\x00\x00\x00\x00\xc3\x9b\x80\x80\x08\xf0\xaa\x98\x05\x00\x00

confluence-kafka works with RedPanda without a problem.

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