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

Import blockscopy too and rename it to copyblocks #3264

Merged
merged 8 commits into from
Oct 21, 2022
Merged

Conversation

pracucci
Copy link
Collaborator

What this PR does

We have a tool https://github.com/grafana/cortex-tools/tree/main/cmd/blockscopy to copy blocks between GCS bucket (it's GCS specific). I need to add more features to it (e.g. copy no-compact markers too), but first I would like to move it Mimir repo along with other tools. I've also rename it to copyblocks to keep consistency with the other tools we have (listblocks, markblocks).

If this PR will be accepted, I will open an issue to add support for all storage backends in this tool too and write its doc.

Which issue(s) this PR fixes or relates to

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>
@pstibrany
Copy link
Member

We should perhaps change the original repo to remove the tool, or to link to this mimir-specific version.

pracucci and others added 2 commits October 20, 2022 14:50
Co-authored-by: Peter Štibraný <pstibrany@gmail.com>
Signed-off-by: Marco Pracucci <marco@pracucci.com>
@pracucci
Copy link
Collaborator Author

We should perhaps change the original repo to remove the tool, or to link to this mimir-specific version.

Definitely, I will.

@pracucci
Copy link
Collaborator Author

We should perhaps change the original repo to remove the tool, or to link to this mimir-specific version.

Definitely, I will.

See: grafana/cortex-tools#265

@pracucci pracucci marked this pull request as ready for review October 20, 2022 12:55
@pracucci pracucci requested a review from a team as a code owner October 20, 2022 12:55
# Copy blocks

This program can copy Mimir blocks between two GCS buckets. It is GCS specific and uses special calls to copy
files between buckets directly, without download to a local system first.
Copy link
Contributor

@osg-grafana osg-grafana Oct 20, 2022

Choose a reason for hiding this comment

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

Suggested change
files between buckets directly, without download to a local system first.
files between buckets directly, without first downloading them to a local system.

Is it accurate or inaccurate to include the word "first" in this phrase? With it, a download might happen; without it, a download does not happen.

Copy link
Contributor

@osg-grafana osg-grafana left a comment

Choose a reason for hiding this comment

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

Unblocking with feedback

pracucci and others added 3 commits October 20, 2022 15:17
Signed-off-by: Marco Pracucci <marco@pracucci.com>
Co-authored-by: Ursula Kallio <ursula.kallio@grafana.com>
Signed-off-by: Marco Pracucci <marco@pracucci.com>
pracucci and others added 2 commits October 20, 2022 18:49
Signed-off-by: Marco Pracucci <marco@pracucci.com>
Co-authored-by: Ursula Kallio <ursula.kallio@grafana.com>
@pracucci pracucci enabled auto-merge (squash) October 21, 2022 12:11
@pracucci pracucci merged commit 42bd1d3 into main Oct 21, 2022
@pracucci pracucci deleted the import-blocks-copy branch October 21, 2022 12:26
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.

3 participants