1
0

Fix the filter condition is missing in the judgment condition of compaction instance (#3025)

This commit is contained in:
swuferhong
2021-06-17 05:28:53 +08:00
committed by GitHub
parent d519c74626
commit 5ce64a81bd
2 changed files with 25 additions and 1 deletions

View File

@@ -63,7 +63,7 @@ public abstract class BaseScheduleCompactionActionExecutor<T extends HoodieRecor
+ ", Compaction scheduled at " + instantTime));
// Committed and pending compaction instants should have strictly lower timestamps
List<HoodieInstant> conflictingInstants = table.getActiveTimeline()
.getWriteTimeline().getInstants()
.getWriteTimeline().filterCompletedAndCompactionInstants().getInstants()
.filter(instant -> HoodieTimeline.compareTimestamps(
instant.getTimestamp(), HoodieTimeline.GREATER_THAN_OR_EQUALS, instantTime))
.collect(Collectors.toList());