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(consumer): avoid submitting empty fetch requests when paused #2143

Merged
merged 1 commit into from
Aug 11, 2022

Conversation

raulnegreiros
Copy link
Contributor

I'm submitting a purpose in order to address this issue

When using the new "pause consumer" support (IBM#2005), Sarama would
incorrectly submit empty FetchRequests if all of the assigned partitions
were paused. This is because we only used Pause to skip adding the
topicPartition blocks to the FetchRequest and still went ahead and sent
the Fetch even if it was essentially empty:
@dnwe dnwe added the fix label Aug 11, 2022
@dnwe dnwe changed the title Make consumer avoid to submit empty requests when all partitions are paused fix(consumer): avoid submitting empty fetch requests when paused Aug 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants