amogh-jahagirdar commented on code in PR #18944:
URL: https://github.com/apache/iceberg/pull/18944#discussion_r4727673285
##########
core/src/main/java/org/apache/iceberg/IncrementalFileCleanup.java:
##########
@@ -131,6 +132,9 @@ public void cleanFiles(
try (CloseableIterable<ManifestFile> manifests =
readManifests(snapshot)) {
for (ManifestFile manifest : manifests) {
validManifests.add(manifest.path());
+ if (manifest.content() == ManifestContent.DELETES) {
+ liveDeleteManifests.add(manifest.copy());
Review Comment:
Agreed it's legitimate but narrow, so let's handle it in a follow-up. If the
manifest list is truly missing, that snapshot is already unreadable. A
transient failure that goes past the num retries, like throttling, could still
remove a shared Puffin that's live. The same issue already affects manifest
deletion in incremental cleanup, so we can fix it upstream by failing fast on
retained-snapshot reads, as `ReachableFileCleanup` does, and keep this backport
a clean cherry-pick.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]