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

cli/debug: make ballast unable to overwrite existing files #59995

Merged
merged 1 commit into from Feb 8, 2021

Conversation

knz
Copy link
Contributor

@knz knz commented Feb 8, 2021

Discussed in customer postmortem.

Release note (backward-incompatible change): The cockroach debug ballast command now refuses to overwrite the target ballast file if
it already exists. This change is intended to prevent mistaken uses of
the ballast command by operators. Scripts that integrate cockroach debug ballast can consider adding a rm command.

@knz knz requested review from joshimhoff and tbg February 8, 2021 13:12
@knz knz requested a review from a team as a code owner February 8, 2021 13:12
@knz knz added this to In progress in DB Server & Security via automation Feb 8, 2021
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Member

@tbg tbg left a comment

Choose a reason for hiding this comment

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

Reviewed 4 of 4 files at r1.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @joshimhoff)

Copy link
Collaborator

@stevendanna stevendanna left a comment

Choose a reason for hiding this comment

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

Reviewed 4 of 4 files at r1.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @joshimhoff)

@knz
Copy link
Contributor Author

knz commented Feb 8, 2021

thanks!

bors r=tbg,stevendanna

@craig
Copy link
Contributor

craig bot commented Feb 8, 2021

Build failed:

@joshimhoff
Copy link
Collaborator

💯

Release note (backward-incompatible change): The `cockroach debug
ballast` command now refuses to overwrite the target ballast file if
it already exists. This change is intended to prevent mistaken uses of
the `ballast` command by operators. Scripts that integrate `cockroach
debug ballast` can consider adding a `rm` command.
@knz
Copy link
Contributor Author

knz commented Feb 8, 2021

that was a lint error

bors r=tbg,stevendanna

@craig
Copy link
Contributor

craig bot commented Feb 8, 2021

Build succeeded:

@craig craig bot merged commit 4da2d8a into cockroachdb:master Feb 8, 2021
DB Server & Security automation moved this from In progress to Done 21.1 Feb 8, 2021
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.

None yet

5 participants