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

Tag flush errors with retryable #329

Merged
merged 5 commits into from
Feb 9, 2024

Conversation

nathan-artie
Copy link
Contributor

@nathan-artie nathan-artie commented Feb 9, 2024

So that we can set up different monitor alerts thresholds for retryable=true and retryable=false.

@nathan-artie nathan-artie marked this pull request as ready for review February 9, 2024 02:28
@nathan-artie nathan-artie requested a review from Tang8330 February 9, 2024 02:28
@@ -90,6 +90,7 @@ func Flush(ctx context.Context, inMemDB *models.DatabaseData, dest destination.B

if err != nil {
tags["what"] = "merge_fail"
tags["retryable"] = fmt.Sprintf("%t", dest.IsRetryableError(err))
Copy link
Contributor

Choose a reason for hiding this comment

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

Do fmt.Sprint(dest.IsRetryableError(err)) so you don't need to worry about string interpolation?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good call.

@nathan-artie nathan-artie merged commit 8a3d938 into master Feb 9, 2024
1 check passed
@nathan-artie nathan-artie deleted the nv/tag-merge-errors-wtih-retryable branch February 9, 2024 03:39
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