1
0

[HUDI-2912] Fix CompactionPlanOperator typo (#4187)

Co-authored-by: yuzhaojing <yuzhaojing@bytedance.com>
This commit is contained in:
yuzhaojing
2021-12-11 01:32:53 +08:00
committed by GitHub
parent be368264f4
commit 3ad9b121f1

View File

@@ -98,7 +98,7 @@ public class CompactionPlanOperator extends AbstractStreamOperator<CompactionPla
}
private void scheduleCompaction(HoodieFlinkTable<?> table, long checkpointId) throws IOException {
// the last instant takes the highest priority.
// the first instant takes the highest priority.
Option<HoodieInstant> firstRequested = table.getActiveTimeline().filterPendingCompactionTimeline()
.filter(instant -> instant.getState() == HoodieInstant.State.REQUESTED).firstInstant();
if (!firstRequested.isPresent()) {