[HUDI-3488] The flink small file list should exclude file slices with pending compaction (#4893)
# this happens when the async-compaction has been configured Co-authored-by: yanenze <yanenze@keytop.com.cn>
This commit is contained in:
@@ -59,7 +59,7 @@ public class DeltaWriteProfile extends WriteProfile {
|
||||
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(), true)
|
||||
List<FileSlice> allFileSlices = fsView.getLatestFileSlicesBeforeOrOn(partitionPath, latestCommitTime.getTimestamp(), false)
|
||||
.collect(Collectors.toList());
|
||||
for (FileSlice fileSlice : allFileSlices) {
|
||||
if (isSmallFile(fileSlice)) {
|
||||
|
||||
Reference in New Issue
Block a user