KafkaConsumer hangs if 'group.id' property is missing
See original GitHub issueEnvironment Information
- OS : debian 9.6 (x86_64)
- Node Version : 9.11.1
- NPM Version : 6.5.0
- node-rdkafka version : 2.5.1
Steps to Reproduce
Instantiate a KafkaConsumer
client without specifying a group.id
property.
node-rdkafka Configuration Settings
const rd = require('node-rdkafka');
const options = {
'metadata.broker.list': 'localhost:9092'
}
const consumer = new rd.KafkaConsumer(options);
consumer.on('ready', () => {
consumer.subscribe([ 'some-topic' ]);
consumer.consume((err, message) => {
console.log(err, message);
});
});
consumer.connect();
// .... nothing will happens : ready event will never been triggered, nor logging events
// Note: Kafka cluster is healthy
Additional context Kafka client just hangs - no event triggered, no debug message
I would expect KafkaConsumer
to throw an error if group.id
is missing or to generate a random one.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5
Top Results From Across the Web
kafka consumer group hangs - Stack Overflow
In all cases I have tried, the consumer (ConsumerGroupExample) hangs waiting for a message despite evidence that there are many messages in ...
Read more >Kafka Consumer | Confluent Documentation
An Apache Kafka consumer group is a set of consumers which cooperate to consume data from some topics.
Read more >Chapter 4. Kafka Consumers: Reading Data from Kafka
The property is group.id and it specifies the consumer group the Kafka Consumer instance belongs to. While it is possible to create consumers...
Read more >Documentation - Apache Kafka
The broker.id property is the unique and permanent name of each node in the cluster. We have to override the port and log...
Read more >Kafka Consumer Groups & Offsets - Conduktor
Usually, we have as many consumers in a consumer group as the number of partitions. If we want more consumers for higher throughput,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sure, Thats why I think node-rdkafka should throw an error when ‘group.id’ is missing.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.