-
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
Consumer hangs with broker-side zstd compression #2316
Comments
@RuiLoureiro This is a separate issue related to reading the headers appropriately from the broker. @he-la even mentions that The failure/error here is when a broker has configuration I logged this as #858 which was closed without fixing. |
A proposed workaround in #858 is to install |
@Green-Angry-Bird For people looking to just consume kafka with |
Sorry all, I logged this issue with confluentinc/confluent-kafka-python#858 |
getting below error when trying to consume from a ZSTD compressed record from kafka. raise UnsupportedCodecError( error log: Traceback (most recent call last): Process finished with exit code 1 My Code for consuming a kafka topic: from kafka import KafkaConsumer except KeyboardInterrupt: |
When setting
compression.type=zstd
on the broker, the consumer fails to read any messages, reportingWARNING:kafka.consumer.fetcher:Unknown error fetching data for topic-partition TopicPartition(topic='test', partition=0)
. Switching tocompression.type=gzip
or to producer-side compression (even with zstd!) fixes the issue, also for historical messages.The text was updated successfully, but these errors were encountered: