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
  • Loading branch information
danny0405 committed May 16, 2022
1 parent 61030d8 commit 712c765
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 712c765

Please sign in to comment.