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: push based consumer group metadata #1739

Merged
merged 6 commits into from
May 7, 2024

Conversation

johanandren
Copy link
Member

When rebalance triggers draining, it blocks the consumer actor so that it could not reply to the request for consumer group metadata, this would often if not always cause the stream to crash on rebalance (new consumer added, consumer leaving).

This improves draining on rebalance which would often if not always
time out since the consumer actor is blocked by the rebalance drain.
Copy link
Member

@ennru ennru left a comment

Choose a reason for hiding this comment

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

Looks like a viable solution to have the group metadata at hand when needed.
The unused new field makes me wonder if you had a thought that didn't make it into the code.

Copy link
Member

@ennru ennru left a comment

Choose a reason for hiding this comment

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

I notice the CommitTransaction class in object TransactionalProducerStage can now be removed.

Copy link
Member

@ennru ennru left a comment

Choose a reason for hiding this comment

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

Getting rid of the extra callback in the committing logic makes it much better.

LGTM.

@johanandren johanandren merged commit 7f80ee2 into main May 7, 2024
9 checks passed
@johanandren johanandren deleted the wip-push-based-consumer-group-metadata branch May 7, 2024 06:50
@johanandren johanandren added this to the 5.0.1 milestone May 7, 2024
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