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

Kafka: Fix potential loss of records under load #917

Merged
merged 1 commit into from
Dec 5, 2024

Conversation

FZambia
Copy link
Member

@FZambia FZambia commented Dec 3, 2024

Proposed changes

There is a problem with current consuming - when under load and partition buffer channel is full the partition records fetched may be lost. Here we ensure we use proper offsets on next Poll for the partition in such a case using manual SetOffsets method.

Also, added tests for the problematic scenario, some internal refactoring and possibility to set fetch_max_bytes - the maximum number of bytes to fetch from Kafka in a single request.

@FZambia FZambia changed the title Kafka: fix possibility to loose records under load Kafka: Fix potential loss of records under load Dec 3, 2024
@FZambia FZambia merged commit 6e16c38 into master Dec 5, 2024
4 checks passed
@FZambia FZambia deleted the kafka_offset_management branch December 5, 2024 05:12
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.

1 participant