Skip to content

AvroConsumer.consume() crash #472

Closed
Closed
@smoynes-tc

Description

@smoynes-tc

Description

When calling AvroConsumer.consume(), Python crashes with a Segmentation fault.

I guess that this method should be overridden similar to AvroConsume.poll() to return deserialized messages.

How to reproduce

import confluent_kafka
import confluent_kafka.avro

c = confluent_kafka.avro.AvroConsumer(
    {
        "bootstrap.servers": ["kafka-broker"],
        "schema.registry.url": "http://schema-registry:8081",
    }
)

print(confluent_kafka.version(), confluent_kafka.libversion())
print(c.consume())

Checklist

Please provide the following information:

  • confluent-kafka-python and librdkafka version (confluent_kafka.version() and confluent_kafka.libversion()): 0.11.5
  • Apache Kafka broker version: 1.1.1
  • Client configuration: {...}
  • Operating system: Linux
  • Provide client logs (with 'debug': '..' as necessary)
  • Provide broker log excerpts
  • Critical issue

Metadata

Metadata

Assignees

Labels

bugReporting an unexpected or problematic behavior of the codebase

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions