[
https://issues.apache.org/jira/browse/GOBBLIN-1934?focusedWorklogId=887050&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-887050
]
ASF GitHub Bot logged work on GOBBLIN-1934:
-------------------------------------------
Author: ASF GitHub Bot
Created on: 24/Oct/23 17:46
Start Date: 24/Oct/23 17:46
Worklog Time Spent: 10m
Work Description: umustafi commented on code in PR #3805:
URL: https://github.com/apache/gobblin/pull/3805#discussion_r1370598057
##########
gobblin-runtime/src/main/java/org/apache/gobblin/runtime/kafka/HighLevelConsumer.java:
##########
@@ -197,6 +201,22 @@ protected void shutdownMetrics() throws IOException {
*/
protected void createMetrics() {
this.messagesRead =
this.metricContext.counter(RuntimeMetrics.GOBBLIN_KAFKA_HIGH_LEVEL_CONSUMER_MESSAGES_READ);
+ this.queueSizeGauges = new ContextAwareGauge[numThreads];
+ this.queueSizeGaugeValues = new AtomicIntegerArray(numThreads);
+ for (int i=0; i < numThreads; i++) {
+ int finalI = i;
+ this.queueSizeGauges[i] = this.metricContext.newContextAwareGauge(
+ RuntimeMetrics.GOBBLIN_KAFKA_HIGH_LEVEL_CONSUMER_QUEUE_SIZE + "-" +
i,
+ () -> queueSizeGaugeValues.get(finalI));
Review Comment:
updating to use `queues[finalI].size()` to avoid having to call a function
to explicitly update this
Issue Time Tracking
-------------------
Worklog Id: (was: 887050)
Time Spent: 1h 10m (was: 1h)
> Monitor High Level Consumer queue size
> --------------------------------------
>
> Key: GOBBLIN-1934
> URL: https://issues.apache.org/jira/browse/GOBBLIN-1934
> Project: Apache Gobblin
> Issue Type: Improvement
> Components: gobblin-service
> Reporter: Urmi Mustafi
> Assignee: Abhishek Tiwari
> Priority: Major
> Time Spent: 1h 10m
> Remaining Estimate: 0h
>
> We suspect that the HighLevelConsumer class may be dropping Kafka messages if
> the thread for a particular consumption queue is interrupted or stalled.
> Before changing how these queues are handled, we want to verify that blocked
> or dropped queues is the reason for missed messages by emitting metrics about
> each queue's size.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)