Skip to content

fix(snapshot): refresh standalone merging updates before planning - #1185

Draft
wgtmac wants to merge 1 commit into
apache:mainfrom
wgtmac:codex/snapshot-refresh-table-identity
Draft

wgtmac wants to merge 1 commit into
apache:mainfrom
wgtmac:codex/snapshot-refresh-table-identity

Conversation

@wgtmac

@wgtmac wgtmac commented Nov 27, 2026

Copy link
Copy Markdown
Member

Motivation

A standalone merging update can outlive its original parent snapshot. Expiration may remove the old manifest list before the update reaches the catalog's compare-and-swap. This extracts the refresh and table-identity handling from #1115.

Changes

Refresh the table before a standalone merging update reads its parent. When the head changes, rebase the update and use the refreshed FileIO for both data and delete manifest managers. Updates inside explicit transactions continue to read their staged parent.

Reject refreshes that return a different known table UUID, so an update cannot publish to a table recreated under the same name. A legacy v1 table without a UUID can still adopt an assigned UUID. Refresh preserves other readers' access to shared catalog handles.

Validation

Built this branch independently and ran the full table_test and table_update_test targets. Regression tests exercise an expired parent, a recreated table, a refreshed FileIO and a staged transaction chain. Pre-commit and git diff --check passed.

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