Expand description
Shared iceberg commit-with-retry primitive used by both the V1/V2 sink committer and the V3 sink coordinator worker. Wraps the standard pattern of “reload the table, build an action against the freshly-loaded snapshot, commit, retry on transient errors only”.
Structs§
Enums§
- Commit
Error - Distinguishes retriable from non-retriable errors inside
run_with_retry.
Functions§
- reload_
table - Reload the iceberg table from the catalog and assert that its current
schema_idanddefault_partition_spec_idstill match the values the caller computed against. Schema, partition, or requested format evolution mid-commit is surfaced as a non-retriable error by the call sites. - run_
with_ retry - Run a commit-action against the given iceberg table with retry.
- run_
with_ retry_ from_ table - Same as
run_with_retry, but wheninitial_tableis set the first attempt runs against it (after the same metadata validation) instead of reloading it from the catalog. Use this when the caller loaded the table right before the commit: a stale table only costs a commit conflict, and every retry reloads.initial_tablemust be the table named bytable_ident. - validate_
table_ 🔒metadata