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

fix: Return :commit since :ack does not commit in v2 #84

Merged
merged 1 commit into from
Mar 8, 2024

Conversation

abel-stord
Copy link
Contributor

@abel-stord abel-stord commented Mar 8, 2024

Checklist

Problem

When using the brod_group_subscriber_v2 our handle_message/3 callback was returning {:ok, :ack, state}. This was the old way to commit messages; in v2, it only acks and doesn't commit based on this comment:
https://github.com/kafka4beam/brod/blob/master/src/brod_group_subscriber_worker.erl#L85

Details

Changed to commit

@abel-stord abel-stord requested a review from a team as a code owner March 8, 2024 14:32
@abel-stord abel-stord changed the title Use commit since ack does not commit in v2 fix: Use commit since ack does not commit in v2 Mar 8, 2024
@abel-stord abel-stord changed the title fix: Use commit since ack does not commit in v2 fix: Return :commit since :ack does not commit in v2 Mar 8, 2024
Copy link
Contributor

@btkostner btkostner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great find!

@btkostner btkostner merged commit 15bd941 into main Mar 8, 2024
10 checks passed
@btkostner btkostner deleted the abel/fix-message-handler branch March 8, 2024 16:09
btkostner pushed a commit that referenced this pull request Mar 8, 2024
An automated release has been created for you.
---


## [3.0.3](v3.0.2...v3.0.3)
(2024-03-08)


### Bug Fixes

* Return `:commit` since `:ack` does not commit in v2
([#84](#84))
([15bd941](15bd941))


### Miscellaneous

* PR template and checklist
([#82](#82))
([ed71ff8](ed71ff8))
* Sync files with stordco/common-config-elixir
([#76](#76))
([b23560e](b23560e))
* Sync files with stordco/common-config-elixir
([#81](#81))
([58aba7b](58aba7b))
* Update readme info about producer testing
([#73](#73))
([00b633a](00b633a))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
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.

2 participants