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

backupccl: skip backing up excluded spans #108627

Merged
merged 1 commit into from Aug 14, 2023

Commits on Aug 11, 2023

  1. backupccl: skip backing up excluded spans

    Previously we sent export requests to all spans being backed up. The ranges for spans
    of tables that had set the flag to exclude data from backup would reply with an
    empty response, excluding their data, but the backup process still sent these
    ranges these requests.
    
    This changes the backup process to not send requests for spans from excluded tables,
    when performing database, table, or cluster backups. Backups of tenants will still send
    export requests to every range for the tenant span, and those ranges that host tables
    that are excluded will continue to reply with no data.
    
    This is done both as an optimization, and so that backups can succeed even when a
    table is unavailable, if, and only if, that table is excluded.
    
    Release note (ops change): BACKUP now skips contacting the ranges for tables on which exclude_data_from_backup is set, and can thus succeed even if an excluded table is unavailable.
    Epic: none.
    dt committed Aug 11, 2023
    Configuration menu
    Copy the full SHA
    c5219e3 View commit details
    Browse the repository at this point in the history