Repository navigation
Conversation
|
Workflow [PR], commit [064c20b] Summary: ❌
AI ReviewSummaryReviewed commit Missing context / blind spots
Final VerdictStatus: ✅ Approve |
| return *this; | ||
| } | ||
|
|
||
| void FileNamesGenerator::setBaseMetadataFile(Int32 base_version, const String & base_metadata_path) |
There was a problem hiding this comment.
I saw this change in the private repo. I think we need to do a sync PR first
There was a problem hiding this comment.
@scanhex12, would you know how to do the sync PR? Let me know if I should close this one then.
There was a problem hiding this comment.
There is no special tool) Just go through the iceberg files manually and add it to your sync PR
There was a problem hiding this comment.
Am a bit confused :) . I thought this was a sync PR. Which other Iceberg files do you want to include here?
Related: #128600
Related: #126924
Summary
The UUID in the metadata file name was calculated from the previous metadata file. That was a temporary protection against two concurrent writers in Glue. It is not necessary now that the Glue commit sends VersionId.
This PR makes the UUID random and removes setBaseMetadataFile. All writers call setVersion. The Glue commit now throws an exception if Glue returns no VersionId.
The private repository already has this change. This PR removes the difference, which currently breaks the sync of #102065.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Metadata files of Iceberg tables in catalogs now have a random UUID in the name. A file left by a failed commit can no longer block later commits to a Glue table.
Workflow [PR]
Sync PR [sync-upstream/pr/133838]