You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Edit Mirror: don't strip shared destination on table removal (#4414)
Multiple source tables mapping to one destination works by keying on
source. In raw table we only have destination table. Removing one such
source previously cleaned based on destination, breaking surviving
source
cdc_flow: compute exclusivelyRemovedTables, removed mappings whose
destination is not fed by any surviving mapping, & scope cleanup to
those. Publication alteration keeps full RemovedTables set: keyed on
source, so every removed source must leave regardless of shared
destination
RemoveTablesFromRawTable: sort+compact destination names & skip when
none remain or syncBatchID <= normBatchID. The DELETE predicate is
_peerdb_batch_id in (normBatchID, syncBatchID]; an empty range makes it
a no-op, so skipping avoids connecting to destination for nothing
clickhouse: delete in 100 table batches to group mutations
Adds e2e Test_Removal_Shared_Destination covering surviving-source
replication into a shared destination after removal. This also adds
coverage for N:1 mirrors
0 commit comments