Skip to content

Conversation

pracucci
Copy link
Contributor

@pracucci pracucci commented Dec 1, 2020

What this PR does:
This is a refactoring PR in preparation for a follow-up PR where I will implement the bucket index reader and writer. The reason of this PR is to avoid circular dependencies between pkg/storage/tsdb and pkg/storage/tsdb/bucketindex. I believe this refactoring also makes sense design wise, considering this logic actually belongs to pkg/storage/backend and is not tied up with the blocks storage implementation.

Based on some offline discussion with Peter, I've renamed pkg/storage/backend to pkg/storage/bucket. I've also removed any "TSDB" or "blocks" reference from pkg/storage/bucket.

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 <[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!

Signed-off-by: Marco Pracucci <[email protected]>
Copy link
Contributor

@jtlisi jtlisi left a comment

Choose a reason for hiding this comment

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

LGTM besides a minor nit

@pracucci pracucci merged commit af9e20c into cortexproject:master Dec 1, 2020
@pracucci pracucci deleted the move-bucket-clients branch December 1, 2020 16:01
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