1
0

[HUDI-1798] Flink streaming reader should always monitor the delta commits files (#2825)

The streaming reader should only monitor the delta log files, if there are parquet commits but we recognize as logs, the reader would report FileNotFound exception.
This commit is contained in:
hiscat
2021-04-15 13:50:17 +08:00
committed by GitHub
parent 62bb9e10d9
commit 6d1aec604f

View File

@@ -185,7 +185,7 @@ public class StreamReadMonitoringFunction
@VisibleForTesting
public void monitorDirAndForwardSplits(SourceContext<MergeOnReadInputSplit> context) {
metaClient.reloadActiveTimeline();
HoodieTimeline commitTimeline = metaClient.getCommitsAndCompactionTimeline().filterCompletedInstants();
HoodieTimeline commitTimeline = metaClient.getActiveTimeline().getDeltaCommitTimeline().filterCompletedInstants();
if (commitTimeline.empty()) {
LOG.warn("No splits found for the table under path " + path);
return;