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)
  • Loading branch information
danny0405 authored and yihua committed Jun 3, 2022
1 parent c4bc06c commit 1ee673b
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 1ee673b

Please sign in to comment.