Skip to content

Commit

Permalink
HBASE-28836 Parallize the file archival to improve the split times in…
Browse files Browse the repository at this point in the history
… object store (s3)
  • Loading branch information
mnpoonia committed Sep 13, 2024
1 parent 4446d29 commit be6e570
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ private static List<File> resolveAndArchive(FileSystem fs, Path baseArchiveDir,

List<File> failures = new ArrayList<>();
String startTime = Long.toString(start);
for (File file : toArchive) {
toArchive.parallelStream().forEach(file -> {
// if its a file archive it
try {
LOG.trace("Archiving {}", file);
Expand All @@ -463,7 +463,7 @@ private static List<File> resolveAndArchive(FileSystem fs, Path baseArchiveDir,
LOG.warn("Failed to archive {}", file, e);
failures.add(file);
}
}
});
return failures;
}

Expand Down

0 comments on commit be6e570

Please sign in to comment.