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

compact: retry on sync metas error #5865

Merged
merged 1 commit into from
Nov 13, 2022
Merged

Conversation

clwluvw
Copy link
Contributor

@clwluvw clwluvw commented Nov 5, 2022

Changes

As SyncMetas is surrounded by Repeat func and can return retry errors, in some cases (like S3) errors (network issue, timeout, etc.) can be retried.

Signed-off-by: Seena Fallah seenafallah@gmail.com

Verification

Currently in case of any errs on SyncMetas it will gracefully shutdown the HTTP server, It can be verified by e.g. issuing timeout on SyncMetas func

Copy link
Contributor

@fpetkovski fpetkovski left a comment

Choose a reason for hiding this comment

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

Thanks, this makes sense to me. I just wonder if we should have some backoff or keep retrying forever.

@clwluvw
Copy link
Contributor Author

clwluvw commented Nov 11, 2022

Thanks, this makes sense to me. I just wonder if we should have some backoff or keep retrying forever.

As we are exposing the metric for it (retries) and the interval is not low by default, I think it's better to leave it to users by configuring the progressCalculateInterval config and alerting on the metric.

fpetkovski
fpetkovski previously approved these changes Nov 12, 2022
As SyncMetas is surrounded by Repeat func and can return retry errors, in some cases (like S3) errors (network issue, timeout, etc.) can be retried.

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
@clwluvw
Copy link
Contributor Author

clwluvw commented Nov 12, 2022

@fpetkovski I also add this change to the changelog, so users will inform about this new behavior.

Copy link
Contributor

@yeya24 yeya24 left a comment

Choose a reason for hiding this comment

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

Looks good! Thanks.

@yeya24 yeya24 merged commit 57429c4 into thanos-io:main Nov 13, 2022
ngraham20 pushed a commit to ngraham20/thanos that referenced this pull request May 18, 2023
As SyncMetas is surrounded by Repeat func and can return retry errors, in some cases (like S3) errors (network issue, timeout, etc.) can be retried.

Signed-off-by: Seena Fallah <seenafallah@gmail.com>

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants