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

backport-19.1: debug zip improvements #36480

Merged
merged 2 commits into from
Apr 3, 2019

Conversation

tbg
Copy link
Member

@tbg tbg commented Apr 3, 2019

Backport:

Please see individual PRs for details.

/cc @cockroachdb/release

tbg added 2 commits April 3, 2019 14:02
The previous code used the sql connection to the first node to fetch
all data. Unfortunately, we have to guess the SQL connection string
for the other nodes (and may not get it right), but I've verified
that this doesn't fail out the whole `debug zip` process. In the
process of verifying that (running with one node down) I also fixed
a few buglets related to that, including creating files multiple
times and generally confused-looking output.

Release note: None
This is achieved via a unit test. I went through all of the missing
tables and made judgement calls on whether they needed to be included.

This resulted in the inclusion of some obvious earlier omissions.

I also went through the crdb_internal tables and added a naming
convention and tried to add TODOs to all methods violating it.
It's a bad idea to rename any of these; we should probably alias
them to their desired name and leave the old name valid, somehow
without listing it in `SHOW TABLES FROM crdb_internal`.

Release note (bug fix): Data that was previously omitted from `debug
zip` is now included.
@tbg tbg requested a review from bdarnell April 3, 2019 12:02
@tbg tbg requested a review from a team as a code owner April 3, 2019 12:02
@tbg tbg requested review from a team April 3, 2019 12:02
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@bdarnell bdarnell 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 r2.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained

@tbg tbg merged commit 759f407 into cockroachdb:release-19.1 Apr 3, 2019
@tbg tbg deleted the backport19.1-36167-36281 branch April 3, 2019 16:12
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

3 participants