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

confirm kafka message manually #144

Open
nieyanzhai opened this issue Sep 13, 2024 · 1 comment
Open

confirm kafka message manually #144

nieyanzhai opened this issue Sep 13, 2024 · 1 comment

Comments

@nieyanzhai
Copy link

how to confirm kafka msg received manually so i can reprocess the msg that failed to process

@reugn
Copy link
Owner

reugn commented Sep 15, 2024

To use the manual committing strategy, disable automatic commits by setting config.Consumer.Offsets.AutoCommit.Enable = false when creating a Kafka source consumer group. More changes are required to the source connector. One option is to include the session with the message sent to the sink for manual commit using custom logic.
Remember that the session.Commit() call is blocking.

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

2 participants