Blizzard / node-rdkafka

Node.js bindings for librdkafka
MIT License
2.1k stars 390 forks source link

Consumer not disconnecting properly #1024

Open ursulacparker opened 1 year ago

ursulacparker commented 1 year ago

Environment Information

Steps to Reproduce If I run the consumer.consume() function and then try to disconnect with the consumer.disconnect() function, it does not disconnect and stop the program. Interestingly, when repeating the same exact process but for the producer, it stops it correctly.

node-rdkafka Configuration Settings 'rebalance_cb': function(err : LibrdKafkaError, assignment : Assignment) { if (err.code === CODES.ERRORS.ERR__ASSIGN_PARTITIONS) { } else if (err.code == CODES.ERRORS.ERR__REVOKE_PARTITIONS){ } else { // We had a real error console.error(err); }

Additional context