Skip to content

Commit

Permalink
[HUDI-9009] Fix potential race condition when listing files by levera…
Browse files Browse the repository at this point in the history
…ging exception type #12834
  • Loading branch information
the-other-tim-brown authored Feb 13, 2025
1 parent 7cea766 commit d1d2f7c
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -481,13 +481,9 @@ public static List<StoragePathInfo> getAllDataFilesInPartition(HoodieStorage sto
String extension = FSUtils.getFileExtension(path.getName());
return validFileExtensions.contains(extension) || path.getName().contains(logFileExtension);
}).stream().filter(StoragePathInfo::isFile).collect(Collectors.toList());
} catch (IOException e) {
} catch (FileNotFoundException ex) {
// return empty FileStatus if partition does not exist already
if (!storage.exists(partitionPath)) {
return Collections.emptyList();
} else {
throw e;
}
return Collections.emptyList();
}
}

Expand Down

0 comments on commit d1d2f7c

Please sign in to comment.