cockroach icon indicating copy to clipboard operation
cockroach copied to clipboard

cdc: backfill consistently on schema change

Open amruss opened this issue 6 years ago • 9 comments

Changefeed behavior during schema changes is surprising and non-ideal for many users. Namely: they receive both the original rows and the updated rows during certain schema change events. We have the option of not including the updated rows, but we should also have the option or expand the existing option to not emit the original rows as this behavior can be undesirable on large tables. Related to https://github.com/cockroachdb/cockroach/issues/35738

gz#4938

Jira issue: CRDB-3579

Epic CRDB-19158

amruss avatar Oct 28 '20 20:10 amruss

@amruss Any update on the status of this issue?

BramGruneir avatar Jan 06 '21 18:01 BramGruneir

@BramGruneir - there is #58518 that is being worked on but besides that no major updates here

amruss avatar Jan 12 '21 16:01 amruss

We added an option for adding a NULL column in 20.2 (https://github.com/cockroachdb/cockroach/pull/45652). Modifying the default value of a column doesn't change any data so that shouldn't trigger a backfill.

Make the behavior consistent across all schema changes.

I'm not clear on what this means.

ajwerner avatar Apr 05 '21 15:04 ajwerner

@amruss I'm not sure that this issue is concrete enough to be actionable. I also feel like the use of backfill here is confusing. I feel like upon reading this again there's some reference to "logical" backfill as though there was some other kind. I worry that this issue is using language to refer to the writes due to #35738 as something that are ever desirable. They aren't. That issue is tracked there.

ajwerner avatar Apr 05 '21 15:04 ajwerner

@ajwerner acked - I updated it to be scoped to what we emit with the no backfill option

amruss avatar Apr 06 '21 21:04 amruss

@vy-ton throwing this on your plate to close out when needed

amruss avatar May 04 '22 18:05 amruss

@devadvocado fyi I associated this with https://cockroachlabs.atlassian.net/browse/CRDB-13602. One of the benefits of the declarative schema changer will be consistent, no duplicate behavior for changefeeds during schema changes. Something to track as we make more progress.

vy-ton avatar May 16 '22 13:05 vy-ton

@amruss is there anything we expect to happen on cdc side for this issue? If not, let's close this?

miretskiy avatar Jan 09 '23 15:01 miretskiy

Closing for the CDC Tream

amruss avatar Jan 11 '23 19:01 amruss