timothyw553 commented on code in PR #18944:
URL: https://github.com/apache/iceberg/pull/18944#discussion_r4726237524
##########
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:
if reading a retained snapshot's manifest list fails above
(`suppressFailureWhenFinished()`), `liveDeleteManifests` will be incomplete and
`unreferencedDVs` could still delete a live shared puffin file. since that
issue also exists on base, maybe we can handle it in an upstream follow-up
rather than blocking this backport?
--
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]