cockroachdb / cockroach

CockroachDB — the cloud native, distributed SQL database designed for high availability, effortless scale, and control over data placement.
https://www.cockroachlabs.com
Other
30.18k stars 3.82k forks source link

crosscluster/logical: validate check constraints on kv write path #134567

Open msbutler opened 2 weeks ago

msbutler commented 2 weeks ago

Currently the kv write path does not recheck that a replicating row abides by the destination table's CHECK constraints. That being said, since LDR only supports single column family tables & tables with identical schema, then the replicating row already passed the identical check on the source side. So, it really isn't a big deal to skip replicating check constraints on the kv write path. There are 2 reasons we want to continue to conduct check constraints on the kv write path though:

Jira issue: CRDB-44144

blathers-crl[bot] commented 2 weeks ago

cc @cockroachdb/disaster-recovery