walterddr commented on a change in pull request #8372:
URL: https://github.com/apache/pinot/pull/8372#discussion_r830625395
##########
File path:
pinot-core/src/main/java/org/apache/pinot/core/data/manager/realtime/LLRealtimeSegmentDataManager.java
##########
@@ -417,11 +417,8 @@ 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());
+ _serverMetrics.setValueOfTableGauge(_metricKeyName,
ServerGauge.HIGHEST_STREAM_OFFSET_CONSUMED,
+ Long.parseLong(_currentOffset.toString()));
Review comment:
oh. didn't catch that's a possibility. do you have an example or the
offset format?
--
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]