Skip to content

rhythm: retry on commit error #4874

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

Merged

Conversation

javiermolinar
Copy link
Contributor

@javiermolinar javiermolinar commented Mar 19, 2025

What this PR does:

It implements a retry strategy to handle transient commit errors

Checklist

  • Tests updated
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

if err == nil && commitOffsetErr == nil {
break
}
if !kerr.IsRetriable(commitOffsetErr) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need to see if err is retriable, and log commitOffsetErr? Finding the dual error handling a little unclear.

Copy link
Contributor

Choose a reason for hiding this comment

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

CommitAllOffsets, yep looks better 👍

@javiermolinar javiermolinar merged commit 9b059f0 into grafana:main Mar 20, 2025
15 checks passed
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