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

Commits on Apr 3, 2019

  1. cli: actually fetch per-node tables from nodes

    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
    tbg committed Apr 3, 2019
    Configuration menu
    Copy the full SHA
    cf3ca4f View commit details
    Browse the repository at this point in the history
  2. cli: enforce inclusion of new crdb_internal tables in debug zip

    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 committed Apr 3, 2019
    Configuration menu
    Copy the full SHA
    81082f7 View commit details
    Browse the repository at this point in the history