RussellSpitzer commented on code in PR #6682: URL: https://github.com/apache/iceberg/pull/6682#discussion_r1122003121
########## core/src/main/java/org/apache/iceberg/hadoop/HadoopFileIO.java: ########## @@ -149,6 +165,45 @@ public void deletePrefix(String prefix) { } } + @Override + public void deleteFiles(Iterable<String> pathsToDelete) throws BulkDeletionFailureException { + AtomicInteger failureCount = new AtomicInteger(0); + Tasks.foreach(pathsToDelete) + .executeWith(executorService()) + .retry(3) + .stopRetryOn(FileNotFoundException.class) + .suppressFailureWhenFinished() + .onFailure( + (f, e) -> { + LOG.error("Failure during bulk delete on file: {} ", f, e); + failureCount.incrementAndGet(); Review Comment: https://github.com/apache/iceberg/blob/715c9b90f537a215f38da5a8ddad19977222860b/core/src/main/java/org/apache/iceberg/util/Tasks.java#L219-L225 Code in question (RunWithRetry) does all retries before hitting "onFailure" -- 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