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

[consumer] Propagate errors for Pause/Resume APIs #853

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

milindl
Copy link
Contributor

@milindl milindl commented Sep 6, 2022

This propagates the individual errors for each TopicPartition
that is being Paused/Resumed, into the input slice itself.
An non-nil cumulative error is returned in case one or more of
the TopicPartitions has an error.
This approach is different from other such APIs, which return a
new slice of TopicPartitions, but that would break the API.
This method keeps the existing API to not break existing code, but
allows users to access errors which were not being made available
earlier through the input.
Fixes #808

This propagates the individual errors for each TopicPartition
that is being Paused/Resumed, into the input slice itself.
An non-nil cumulative error is returned in case one or more of
the TopicPartitions has an error.
This approach is different from other such APIs, which return a
new slice of TopicPartitions, but that would break the API.
This method keeps the existing API to not break existing code, but
allows users to access errors which were not being made available
earlier through the input.
@milindl milindl requested a review from a team September 6, 2022 13:58
@cla-assistant
Copy link

cla-assistant bot commented Aug 4, 2023

CLA assistant check
All committers have signed the CLA.

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.

Consumer Resume/Pause Propagating Errors
1 participant