Skip to content

rhythm: retry on commit error#4874

Merged
javiermolinar merged 5 commits intografana:mainfrom
javiermolinar:rhythm-retry-on-commit-error
Mar 20, 2025
Merged

rhythm: retry on commit error#4874
javiermolinar merged 5 commits intografana:mainfrom
javiermolinar:rhythm-retry-on-commit-error

Conversation

@javiermolinar
Copy link
Copy Markdown
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]

Comment thread modules/blockbuilder/blockbuilder.go Outdated
if err == nil && commitOffsetErr == nil {
break
}
if !kerr.IsRetriable(commitOffsetErr) {
Copy link
Copy Markdown
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
Copy Markdown
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 👍

Comment thread modules/blockbuilder/blockbuilder_test.go Outdated
@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