cockroachdb / cockroachdb/cockroach

logical,txn: replan LDR at source schema-change boundaries

Open
#173,606 2 comments 0 reactions 0 assignees View on GitHub
A-cdc A-logical-data-replication T-cdc
Dominant language
Go
Stars
32.5k
Forks
4.1k
PR merge metrics
PR metrics pending

Description

When the destination reaches a source schema-change boundary, finish the current flow and rebuild the replication plan using the new source schema. The boundary must be reached across all source partitions before the old flow ends.

Some existing progress tracking, metadata forwarding, and clean-shutdown behavior will need adjustment to make this reliable.

**Out of scope:** Detecting the boundary on the source or enabling `ADD COLUMN`.

**Done when:** LDR reaches the boundary, records the correct replicated time, and replans using the post-change schema. Replication continues without losing the first non-NULL value written under the new schema.

**Notes / risk:** Quiet partitions and restarts during boundary handling need coverage.

**Depends on:** #173603, #173604

Jira issue: CRDB-66918

Epic CRDB-66920

Contributor guide

Open the contributing guide

Research direction

No files, tests, or concrete entry points are named. Start by tracing logical transaction LDR handling for source schema-change boundaries, including progress tracking, metadata forwarding, and clean shutdown. Add coverage for quiet partitions and restarts; done means the boundary is reached across all partitions, the replicated time is correct, replanning uses the new schema, and the first non-NULL post-change value is preserved.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
databases, distributed-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.