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

Honor auto.offset.reset parameter in Kafka source #4095

Merged
merged 1 commit into from
Nov 7, 2023

Conversation

guilload
Copy link
Member

@guilload guilload commented Nov 6, 2023

Description

Previously, the source ignored the auto.offset.reset configuration parameter and always began consumption of a partition from the beginning. With this change, it now honors the client configuration.

How was this PR tested?

Added test

@guilload guilload requested a review from fmassot November 6, 2023 23:02
warn!("partition `{partition_id}` not found in assignment");
continue;
};
if let Err(error) = partition.set_offset(offset) {
Copy link
Contributor

Choose a reason for hiding this comment

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

shouldn't we abort if there is an error on set_offset? (just a question, I don't know which kind of error we get from this call)

@guilload guilload merged commit 49d2a39 into main Nov 7, 2023
@guilload guilload deleted the guilload/honor-auto-offset-reset branch November 7, 2023 13:35
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