Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The 'auto.commit.interval.ms' property is ignored when autocommit is enabled. #215

Open
ghost opened this issue Jul 14, 2023 · 1 comment

Comments

@ghost
Copy link

ghost commented Jul 14, 2023

The auto.commit.interval.ms is hardcoded to zero. I believe it means the Kafka client commits/ACKs after every poll() when auto commit is enabled.

https://github.com/morganstanley/modern-cpp-kafka/blob/a146d10bcf166f55299c7a55728abaaea52cb0e5/include/kafka/KafkaConsumer.h#L355C15-L355C15

@kenneth-jia
Copy link
Contributor

It's done on purpose, but not commit after the poll(), -- it would commit with the next poll().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant