Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import com.google.common.collect.Iterables;
import com.google.common.collect.Lists;
import java.io.IOException;
import java.io.FileNotFoundException;
import java.net.URI;
import java.util.Collection;
import java.util.List;
Expand Down Expand Up @@ -239,7 +240,12 @@ private static boolean cleanlyDelete(FileSystem fs, Path root, Path path, boolea
if (stats == null || stats.length == 0) {
// dir is empty and should be removed
LOG.debug("Deleting empty path {}", current);
deleted = fs.delete(current, true) || deleted;
try{
deleted = fs.delete(current, true) || deleted;
}
catch(FileNotFoundException ex){
// safely ignored, since anther job just deleted this directory
}
} else {
// all parent directories will be non-empty
break;
Expand Down