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
{{ message }}
Repository navigation
OPTIMIZE on a Glue Iceberg table can drop a commit that lands while it is publishing #2733
OPTIMIZE on a Glue Iceberg table can drop a commit that lands while it is publishing.
Bin-pack compaction re-reads Glue's metadata_location and aborts if that file changed during the rewrite. It then writes the new metadata and calls catalog->updateMetadata. Glue's UpdateTable replaces metadata_location and does not check the snapshot. Any commit that lands after that re-read and before UpdateTable returns is no longer the current snapshot.
This is specific to Glue. A REST catalog rejects the update with assert-ref-snapshot-id and does not move the catalog pointer.
To Reproduce
Needs a Glue Iceberg table with at least two small data files, so OPTIMIZE rewrites them. The insert has to land after OPTIMIZE has rewritten the files and re-read metadata_location, and before Glue UpdateTable returns.
Activity
Fix Glue OPTIMIZE concurrent commit race (#2733)