Sometimes a new consumer group does not work
问题 I've seen this in production once (I don't remember how we solved it) and now I can repeat it in the integration tests, which always start with a brand new Kafka installation. Here's how it goes: Step 1: A consumer of a group that doesn't exist yet subscribes to a topic that does not exist yet and starts polling. self.kafka_consumer = confluent_kafka.Consumer({ 'group.id': 'mygroup', 'bootstrap.servers': 'kafka:9092', 'enable.auto.commit': False, 'auto.offset.reset': 'earliest', }) self.kafka