Skip to content

Commit

Permalink
[HUDI-4104] DeltaWriteProfile includes the pending compaction file sl…
Browse files Browse the repository at this point in the history
…ice when deciding small buckets (apache#5594)

(cherry picked from commit fdd96cc)
  • Loading branch information
danny0405 authored and XuQianJin-Stars committed Jun 5, 2022
1 parent eb98e68 commit b9cc235
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ protected List<SmallFile> smallFilesProfile(String partitionPath) {
List<FileSlice> allSmallFileSlices = new ArrayList<>();
// If we can index log files, we can add more inserts to log files for fileIds including those under
// pending compaction.
List<FileSlice> allFileSlices = fsView.getLatestFileSlicesBeforeOrOn(partitionPath, latestCommitTime.getTimestamp(), false)
List<FileSlice> allFileSlices = fsView.getLatestMergedFileSlicesBeforeOrOn(partitionPath, latestCommitTime.getTimestamp())
.collect(Collectors.toList());
for (FileSlice fileSlice : allFileSlices) {
if (isSmallFile(fileSlice)) {
Expand Down

0 comments on commit b9cc235

Please sign in to comment.