Skip to content

Commit

Permalink
Enable deletion of data files that don't have aux objects for S3 #3921
Browse files Browse the repository at this point in the history
  • Loading branch information
bsilverstein95 committed Aug 15, 2017
1 parent 15de4b8 commit 3c392bd
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,10 @@ public void deleteAllAuxObjects() throws IOException {
String destinationKey = item.getKey();
keys.add(new KeyVersion(destinationKey));
}
//Check if the list of auxiliary files for a data file is empty
if (keys.isEmpty()) {
return;
}
multiObjectDeleteRequest.setKeys(keys);

logger.info("Trying to delete auxiliary files...");
Expand Down

0 comments on commit 3c392bd

Please sign in to comment.