Skip to content

Fixed instrumented bucket interface in globalMarkersBucket #3711

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
merged 4 commits into from
Jan 20, 2021

Conversation

pracucci
Copy link
Contributor

What this PR does:
Today I've noticed that the objstore error rate panel for the compactor is reporting an high failure rate. It's caused by the fact that the Thanos MetadataFetcher (used by the compactor) calls bkt.ReaderWithExpectedErrs(bkt.IsObjNotFoundErr).Get(ctx, markerFile) to check whether a block has a deletion mark. The "object not found" is an expected error that shouldn't be tracked as error in metrics, but our globalMarkersBucket wrapper doesn't implements the objstore.InstrumentedBucket and objstore.InstrumentedBucketReader interfaces and so it doesn't work as expected.

Screenshot 2021-01-19 at 19 04 27

Which issue(s) this PR fixes:
N/A

Checklist

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

Signed-off-by: Marco Pracucci <marco@pracucci.com>
Signed-off-by: Marco Pracucci <marco@pracucci.com>
Signed-off-by: Marco Pracucci <marco@pracucci.com>
@pracucci pracucci merged commit 6283b41 into cortexproject:master Jan 20, 2021
@pracucci pracucci deleted the fix-global-marker-bucket branch January 20, 2021 08:14
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.

2 participants