[ https://issues.apache.org/jira/browse/FLINK-7758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16209403#comment-16209403 ]
ASF GitHub Bot commented on FLINK-7758: --------------------------------------- Github user zentol commented on the issue: https://github.com/apache/flink/pull/4769 The current solution also straight up doesn't work: ``` java.lang.ClassCastException: java.lang.Object cannot be cast to org.apache.flink.metrics.MetricGroup at org.apache.flink.streaming.connectors.kafka.internals.AbstractFetcher.registerOffsetMetrics(AbstractFetcher.java:555) at org.apache.flink.streaming.connectors.kafka.internal.Kafka09Fetcher.<init>(Kafka09Fetcher.java:99) at org.apache.flink.streaming.connectors.kafka.internal.Kafka09FetcherTest.testCancellationWhenEmitBlocks(Kafka09FetcherTest.java:376) ``` > Fix bug Kafka09Fetcher add offset metrics > ------------------------------------------- > > Key: FLINK-7758 > URL: https://issues.apache.org/jira/browse/FLINK-7758 > Project: Flink > Issue Type: Bug > Components: Kafka Connector, Metrics > Affects Versions: 1.3.2 > Reporter: Hai Zhou UTC+8 > Assignee: Hai Zhou UTC+8 > Fix For: 1.4.0 > > > in Kafka09Fetcher, add _KafkaConsumer_ kafkaMetricGroup. > No judgment that the useMetrics variable is true. -- This message was sent by Atlassian JIRA (v6.4.14#64029)