Skip to content

cdc: omit duplicate table mappings from CDCFlowWorkflow payloads - #5106

Draft
dtunikov wants to merge 1 commit into
mainfrom
customer-compact-cdc-table-mappings
Draft

dtunikov wants to merge 1 commit into
mainfrom
customer-compact-cdc-table-mappings

Conversation

@dtunikov

Copy link
Copy Markdown
Contributor

Continue-As-New and SyncFlow inputs sent the table mappings twice, in cfg.TableMappings and state.SyncFlowOptions.TableMappings. Mirrors with thousands of tables went over Temporal's 2MB limit and failed with PayloadsTooLarge. Both inputs now omit cfg.TableMappings, and the next run restores them from state. Inputs that carry both copies are still accepted.

Added TestContinueAsNewPayloadOmitsDuplicateTableMappings (8,464 mappings: about 3.0MB before, 1.7MB after) and TestRestoreTableMappingsKeepsLegacyInput. Longer-term handling of jumbo configs is tracked in CLP-1740.

🤖 Generated with Claude Code

Continue-As-New and SyncFlow inputs carried table mappings in both cfg and
state.SyncFlowOptions, pushing mirrors with thousands of tables over
Temporal's 2MB payload limit. Drop them from cfg and restore them from state
when the next run starts; inputs with both copies still work.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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.

1 participant