tsreaper commented on code in PR #1749:
URL: https://github.com/apache/incubator-paimon/pull/1749#discussion_r1286584680
##########
paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/source/ContinuousFileStoreSource.java:
##########
@@ -40,6 +48,7 @@ public class ContinuousFileStoreSource extends FlinkSource {
protected final Map<String, String> options;
protected final BucketMode bucketMode;
+ protected ConcurrentHashMap<Integer, Long> consumedRecords = new
ConcurrentHashMap<>();
Review Comment:
`SourceReader` runs in task manager, while `SplitEnumerator` runs in job
manager. They can't communicate only through memory.
##########
paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/source/ContinuousFileSplitEnumerator.java:
##########
@@ -92,6 +98,8 @@ public ContinuousFileSplitEnumerator(
this.splitGenerator = new FileStoreSourceSplitGenerator();
this.scan = scan;
this.splitAssigner = createSplitAssigner(bucketMode);
+ this.readersFetchedRecords = readersFetchedRecords;
+ context.metricGroup().gauge("totalPendingRecords",
this::getPendingRecords);
Review Comment:
There is no `totalPendingRecords` in FLIP-33. You mean `pendingRecords`? Use
`org.apache.flink.runtime.metrics.MetricNames.PENDING_RECORDS`. Don't use a
"magic string".
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]