Skip to content

enable self healing after offset out of range kafka error#18

Merged
igrowbeards merged 1 commit into
mainfrom
feature/handle_offset_out_of_range
Jun 19, 2026
Merged

enable self healing after offset out of range kafka error#18
igrowbeards merged 1 commit into
mainfrom
feature/handle_offset_out_of_range

Conversation

@igrowbeards

Copy link
Copy Markdown

We noticed during the kafka upgrade a few weeks ago that some of our applications did not come back up cleanly and required a manual restart to start the consumers consuming again. I believe i've traced the issue back to a failure by elsa to handle an "offset out of range" error message that brod emits. This PR just adds handling and a few test cases including some integration tests against an actual kafka using the divo lib. This change does entail the possibility for lost or replayed messages (depending on your config) - but with a no longer valid offset you're left with only 2 choices: Reset to earliest, or reset to latest. I tried to make that clear in the inline doc.

Closes https://simplifi.atlassian.net/browse/DSP1-498

@ashley-graham ashley-graham left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Thank you for showing what you're working on so that I can learn from it in comparison to my chaos testing on apps using kafka_ex!

@igrowbeards
igrowbeards merged commit b515f19 into main Jun 19, 2026
3 checks passed
@igrowbeards
igrowbeards deleted the feature/handle_offset_out_of_range branch June 19, 2026 15: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.

3 participants