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

commit offset explicitly when AutoCommit is disabled and added Test Code for Manual Commit #25

Conversation

tjnet
Copy link
Contributor

@tjnet tjnet commented May 16, 2023

context

I followed his suggestion

Can you add a test for that case in that file: https://github.com/ThreeDotsLabs/watermill-kafka/blob/master/pkg/kafka/pubsub_test.go

I think that it is not needed to run entire tests.TestPubSub. I think that it should be enough to use TestPublishSubscribe from the test suite.

could you confirm when you have time?

@voodoo-dn
Copy link

@roblaszczak Hi. We disabled autocommit and experienced error which is fixed in this PR. Is it real to merge it? It's very necessary for us. Thanks.

@Exxon1800
Copy link

Exxon1800 commented Nov 20, 2024

Hi, I was wondering, is this feature still going to be implemented? This feature would be really useful for the project I'm working on. Thanks so far!

@roblaszczak
Copy link
Member

it took some time, but it's finally green 🎉

for the record, what helped was re-building docker-compose #37

additionally, setting Consumer.Offsets.AutoCommit.Enable slows subscribing a lot, so I added option to run tests with less messages: 47e6b78

@roblaszczak
Copy link
Member

thanks @tjnet for contribution!

@roblaszczak roblaszczak merged commit 008c08b into ThreeDotsLabs:master Jan 13, 2025
4 checks passed
@tjnet tjnet deleted the fix-commit-msg-then-autocommit-disabled-and-test branch January 14, 2025 01:48
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

Successfully merging this pull request may close these issues.

5 participants