Caideyipi commented on code in PR #15666:
URL: https://github.com/apache/iotdb/pull/15666#discussion_r2133186221


##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/agent/task/subtask/connector/PipeConnectorSubtaskManager.java:
##########
@@ -112,12 +114,17 @@ public synchronized String register(
       final List<PipeConnectorSubtaskLifeCycle> 
pipeConnectorSubtaskLifeCycleList =
           new ArrayList<>(connectorNum);
 
+      AtomicInteger counter = new AtomicInteger(0);
       // Shared pending queue for all subtasks
       final UnboundedBlockingPendingQueue<Event> pendingQueue =
           realTimeFirst
               ? new PipeRealtimePriorityBlockingQueue()
               : new UnboundedBlockingPendingQueue<>(new 
PipeDataRegionEventCounter());
 
+      if (realTimeFirst) {
+        ((PipeRealtimePriorityBlockingQueue) 
pendingQueue).setOfferTsFileCounter(counter);

Review Comment:
   In SubscriptionConnectorSubtaskManager this may not be triggered and is null.



-- 
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]

Reply via email to