Skip to content

debug-zip: include raw job and schema info #40510

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

Merged
merged 1 commit into from
Sep 6, 2019

Conversation

dt
Copy link
Member

@dt dt commented Sep 5, 2019

The debug.zip already contains some human-readable schema info scraped
from the admin API to help with query debugging, but this human-readable
form is pretty far removed from the low-level, raw metadata (for example
it doesn't include "dropped" tables that still exist).

Being able to restore (via some creative inserts) the actual descriptors
and jobs has proved instrumental in reproducing and troubleshooting some
issues with long-running jobs and schema changes. This adds those raw
tables, since they serve a different purpose from their human-readable
counterparts.

Release note: None

@dt dt requested review from danhhz and thoszhang September 5, 2019 13:41
@dt dt requested a review from a team as a code owner September 5, 2019 13:41
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@thoszhang
Copy link
Contributor

Should we backport this to 19.1?

The debug.zip already contains some human-readable schema info scraped
from the admin API to help with query debugging, but this human-readable
form is pretty far removed from the low-level, raw metadata (for example
it doesn't include "dropped" tables that still exist).

Being able to restore (via some creative inserts) the actual descriptors
and jobs has proved instrumental in reproducing and troubleshooting some
issues with long-running jobs and schema changes. This adds those raw
tables, since they serve a different purpose from their human-readable
counterparts.

Release note: None
@dt dt force-pushed the debug-zip-descriptors branch from 8fdb1ad to 6f4bb9c Compare September 5, 2019 17:20
@dt
Copy link
Member Author

dt commented Sep 5, 2019

bors r+

@craig
Copy link
Contributor

craig bot commented Sep 5, 2019

Build failed (retrying...)

craig bot pushed a commit that referenced this pull request Sep 5, 2019
40510: debug-zip: include raw job and schema info r=dt a=dt

The debug.zip already contains some human-readable schema info scraped
from the admin API to help with query debugging, but this human-readable
form is pretty far removed from the low-level, raw metadata (for example
it doesn't include "dropped" tables that still exist).

Being able to restore (via some creative inserts) the actual descriptors
and jobs has proved instrumental in reproducing and troubleshooting some
issues with long-running jobs and schema changes. This adds those raw
tables, since they serve a different purpose from their human-readable
counterparts.

Release note: None

Co-authored-by: David Taylor <[email protected]>
@craig
Copy link
Contributor

craig bot commented Sep 6, 2019

Build succeeded

@craig craig bot merged commit 6f4bb9c into cockroachdb:master Sep 6, 2019
@dt dt deleted the debug-zip-descriptors branch September 6, 2019 12:33
@dt
Copy link
Member Author

dt commented Sep 6, 2019

I hadn't really considered back porting to 19.1 but I guess I don't see why not?

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.

4 participants