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

Fixed chunk data corruption when querying back series using the blocks storage #2400

Merged

Conversation

pracucci
Copy link
Contributor

@pracucci pracucci commented Apr 3, 2020

What this PR does:
In the PR #2324 I've introduced a severe issue affecting the blocks storage which cause corrupted chunk data when querying back series using the blocks storage. In this PR I'm picking the safest approach and copying the entire Series response.

The reason why I've not done any optimisation to reduce memory allocations is:

  1. It's not worse than the state before PR Removed gRPC server to communicate between querier and BucketStore #2324
  2. The store-gateway (which we expect to merge in the next few weeks) will remove bucketStoreSeriesServer at all

Which issue(s) this PR fixes:
Fixes #2396

Checklist

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

@pracucci pracucci requested a review from pstibrany April 3, 2020 08:44
Signed-off-by: Marco Pracucci <[email protected]>
Copy link
Contributor

@pstibrany pstibrany left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@pracucci pracucci merged commit 9b4841a into cortexproject:master Apr 3, 2020
@pracucci pracucci deleted the fix-blocks-bucket-store-series branch April 3, 2020 09:45
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.

Query error after upgrade to 1.0.0
2 participants