Skip to content

feat(manual-jobs): add job to rerun completed idempotent migrations#7859

Merged
onewland merged 1 commit intomasterfrom
oliver/rerun-idempotent-migration-job
Apr 3, 2026
Merged

feat(manual-jobs): add job to rerun completed idempotent migrations#7859
onewland merged 1 commit intomasterfrom
oliver/rerun-idempotent-migration-job

Conversation

@onewland
Copy link
Copy Markdown
Contributor

@onewland onewland commented Apr 3, 2026

Create a RerunIdempotentMigration manual job that reruns the forward SQL operations of a completed ClickhouseNodeMigration. We want to do this because we can't re-run completed migrations via snuba-admin and we have some workload migrations that got overwritten during a cluster rebuild (they weren't part of COPY TABLES), they can't be run "ON CLUSTER" with sudo mode, so I want to use the migration system to make sure the DDL runs on every node

🤖 Generated with Claude Code

Adds RerunIdempotentMigration manual job that reruns the forward SQL
operations of a completed ClickhouseNodeMigration. Takes storage_set
and migration_id as input parameters, verifies the migration is in
completed state before executing.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@onewland onewland requested a review from a team as a code owner April 3, 2026 14:36
@onewland onewland merged commit b00ba9d into master Apr 3, 2026
46 of 47 checks passed
@onewland onewland deleted the oliver/rerun-idempotent-migration-job branch April 3, 2026 18: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.

2 participants