walterddr commented on a change in pull request #8372: URL: https://github.com/apache/pinot/pull/8372#discussion_r831370225
########## File path: pinot-core/src/main/java/org/apache/pinot/core/data/manager/realtime/LLRealtimeSegmentDataManager.java ########## @@ -417,11 +418,11 @@ protected boolean consumeLoop() if (_currentOffset.compareTo(lastUpdatedOffset) != 0) { consecutiveIdleCount = 0; // We consumed something. Update the highest stream offset as well as partition-consuming metric. - // TODO Issue 5359 Need to find a way to bump metrics without getting actual offset value. - //_serverMetrics.setValueOfTableGauge(_metricKeyName, ServerGauge.HIGHEST_KAFKA_OFFSET_CONSUMED, - //_currentOffset.getOffset()); - //_serverMetrics.setValueOfTableGauge(_metricKeyName, ServerGauge.HIGHEST_STREAM_OFFSET_CONSUMED, - //_currentOffset.getOffset()); + if (_currentOffset instanceof LongMsgOffset) { Review comment: ```suggestion // TODO Issue 5359 Need to find a way to bump metrics without getting actual offset value. if (_currentOffset instanceof LongMsgOffset) { ``` -- 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