Skip to content

Commit

Permalink
[HUDI-2415] Add more info log for flink streaming reader
Browse files Browse the repository at this point in the history
  • Loading branch information
danny0405 committed Sep 11, 2021
1 parent 0624041 commit e6d28ea
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,13 @@ public void monitorDirAndForwardSplits(SourceContext<MergeOnReadInputSplit> cont
List<HoodieCommitMetadata> activeMetadataList = instants.stream()
.map(instant -> WriteProfiles.getCommitMetadata(tableName, path, instant, commitTimeline)).collect(Collectors.toList());
List<HoodieCommitMetadata> archivedMetadataList = getArchivedMetadata(instantRange, commitTimeline, tableName);
if (archivedMetadataList.size() > 0) {
LOG.warn(""
+ "--------------------------------------------------------------------------------\n"
+ "---------- caution: the reader has fall behind too much from the writer,\n"
+ "---------- tweak 'read.tasks' option to add parallelism of read tasks.\n"
+ "--------------------------------------------------------------------------------");
}
List<HoodieCommitMetadata> metadataList = archivedMetadataList.size() > 0
? mergeList(activeMetadataList, archivedMetadataList)
: activeMetadataList;
Expand Down Expand Up @@ -288,6 +295,11 @@ public void monitorDirAndForwardSplits(SourceContext<MergeOnReadInputSplit> cont
}
// update the issues instant time
this.issuedInstant = commitToIssue;
LOG.info(""
+ "------------------------------------------------------------\n"
+ "---------- consumed to instant: {}\n"
+ "------------------------------------------------------------",
commitToIssue);
}

@Override
Expand Down

0 comments on commit e6d28ea

Please sign in to comment.