Skip to content

Generic job for backfilling desired sharding keys

Tiger Watson requested to merge backfill-desired-sharding-key-job into master

What does this MR do and why?

Add a generic background migration for backfilling desired sharding keys

As part of defining sharding keys for every cell local table, many tables will require their sharding key to be backfilled via a foreign table.

Inheriting from a generic job means the query doesn't need to be rewritten for each column that is backfilled.

The query and specs are adapted from !136800 (merged), which is a previous example we did manually (without using GitLab Housekeeper).

!144128 (closed) is an example of a housekeeper MR that will queue a job that inherits from this one.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Edited by Tiger Watson

Merge request reports