SteveYurongSu commented on code in PR #13008:
URL: https://github.com/apache/iotdb/pull/13008#discussion_r1688042336
##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/extractor/dataregion/realtime/assigner/PipeDataRegionAssigner.java:
##########
@@ -64,12 +66,23 @@ public void publishToAssign(PipeRealtimeEvent event) {
}
}
- public void assignToExtractor(PipeRealtimeEvent event, long sequence,
boolean endOfBatch) {
+ public void assignToExtractor(
+ final PipeRealtimeEvent event, final long sequence, final boolean
endOfBatch) {
matcher
.match(event)
.forEach(
extractor -> {
if (event.getEvent().isGeneratedByPipe() &&
!extractor.isForwardingPipeRequests()) {
+ final ProgressReportEvent reportEvent =
+ new ProgressReportEvent(
+ extractor.getPipeName(),
+ extractor.getCreationTime(),
+ extractor.getPipeTaskMeta(),
+ extractor.getPipePattern(),
+ extractor.getRealtimeDataExtractionStartTime(),
+ extractor.getRealtimeDataExtractionEndTime());
+ reportEvent.bindProgressIndex(event.getProgressIndex());
+
extractor.extract(PipeRealtimeEventFactory.createRealtimeEvent(reportEvent));
Review Comment:
increaseReferenceCount?
--
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]