navina commented on code in PR #9994:
URL: https://github.com/apache/pinot/pull/9994#discussion_r1061765187


##########
pinot-core/src/main/java/org/apache/pinot/core/data/manager/realtime/LLRealtimeSegmentDataManager.java:
##########
@@ -611,6 +616,8 @@ private boolean processStreamEvents(MessageBatch 
messagesAndOffsets, long idlePi
       if (_segmentLogger.isDebugEnabled()) {
         _segmentLogger.debug("empty batch received - sleeping for {}ms", 
idlePipeSleepTimeMillis);
       }
+      // Record Pinot ingestion delay as zero since we are up-to-date and no 
new events

Review Comment:
   I think the interface should be in the consumer as that is the one which is 
polling the source and knows the state of the upstream partition. I would like 
to point out that only the consumer (or subscriber) will know its own state 
that is relative to its upstream. 
   
   In general, I urge the team to think about solutions that can be cleanly 
extended/adapted to all other streaming systems. 



-- 
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: commits-unsubscr...@pinot.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org

Reply via email to