xiangfu0 commented on code in PR #17560:
URL: https://github.com/apache/pinot/pull/17560#discussion_r2720514310


##########
pinot-server/src/main/java/org/apache/pinot/server/starter/helix/FreshnessBasedConsumptionStatusChecker.java:
##########
@@ -80,6 +80,14 @@ protected boolean isSegmentCaughtUp(String segmentName, 
RealtimeSegmentDataManag
 
     StreamMetadataProvider streamMetadataProvider =
         
realtimeTableDataManager.getStreamMetadataProvider(rtSegmentDataManager);
+
+    if (!streamMetadataProvider.supportsOffsetLag()) {
+      // Cannot conclude if segment has caught up or not. Skip such segments.
+      _logger.warn("Stream provider for segment: {} does not support offset 
subtraction. Current offset: {}",

Review Comment:
   Think of just logging this once ? This will be called for every consuming 
segment for every health check call 



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to