nastra commented on code in PR #9184:
URL: https://github.com/apache/iceberg/pull/9184#discussion_r1869635184


##########
core/src/main/java/org/apache/iceberg/CatalogUtil.java:
##########
@@ -99,7 +98,12 @@ public static void dropTableData(FileIO io, TableMetadata 
metadata) {
     Set<ManifestFile> manifestsToDelete = Sets.newHashSet();
     for (Snapshot snapshot : metadata.snapshots()) {
       // add all manifests to the delete set because both data and delete 
files should be removed
-      Iterables.addAll(manifestsToDelete, snapshot.allManifests(io));
+      try {
+        Iterables.addAll(manifestsToDelete, snapshot.allManifests(io));
+      } catch (RuntimeException e) {
+        // ignore the exception to finish deletion as much as possible.
+        LOG.warn("Failed to read all the manifests from snapshot {}", 
snapshot.snapshotId(), e);

Review Comment:
   ```suggestion
           LOG.warn("Failed to read all manifests for snapshot {}", 
snapshot.snapshotId(), e);
   ```



-- 
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: issues-unsubscr...@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to