Blizzard / node-rdkafka

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

offsetsStore() does not work when using 'connection string' in >=2.16 version #1021

Open lcialon opened 1 year ago

lcialon commented 1 year ago

Environment Information

It seems that since version 2.16, which includes the new version of librdkafka, the functionality of manually committing the offset when connecting to the event hub using connection string has stopped working. Version 2.15 is working properly.

Configuration:

'enable.auto.commit': true,
'enable.auto.offset.store': false

Code:

const processedTopicPartition = {
  topic,
  partition,
  offset
}
stream.consumer.offsetsStore([processedTopicPartition])

I checked, also, that offset_commit_cb is not called in this case.