You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Chesnay Schepler (Jira)" <ji...@apache.org> on 2022/05/04 11:34:00 UTC

[jira] [Updated] (FLINK-27487) KafkaMetricWrappers do incorrect cast

     [ https://issues.apache.org/jira/browse/FLINK-27487?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chesnay Schepler updated FLINK-27487:
-------------------------------------
    Description: 
In FLINK-24765 the kafka metric wrappers that bridge kafka metrics into our metric system were migrated from the deprecated {{KafkaMetric#value}} to {{#metricValue}}.

This migration was done incorrectly. It was assumed that #metricValue behaves similar to #value in that it always returns a double, but this is not the case, as they may also return longs or strings.

This results in these metrics throwing exceptions, which generally breaks the reporter mechanism completely.

  was:
In FLINK-24765 the kafka metric wrappers that bridge kafka metrics into our metric system were migrated from the deprecated {{KafkaMetric#value}} to {{#metricValue}}.

This migration was done incorrectly. It was assumed that #metricValue behaves similar to #value in that it always returns a double, but this is not the case, as they may also return longs or strings.


> KafkaMetricWrappers do incorrect cast
> -------------------------------------
>
>                 Key: FLINK-27487
>                 URL: https://issues.apache.org/jira/browse/FLINK-27487
>             Project: Flink
>          Issue Type: Bug
>          Components: Connectors / Kafka, Runtime / Metrics
>    Affects Versions: 1.15.0
>            Reporter: Chesnay Schepler
>            Priority: Blocker
>             Fix For: 1.16.0, 1.15.1
>
>
> In FLINK-24765 the kafka metric wrappers that bridge kafka metrics into our metric system were migrated from the deprecated {{KafkaMetric#value}} to {{#metricValue}}.
> This migration was done incorrectly. It was assumed that #metricValue behaves similar to #value in that it always returns a double, but this is not the case, as they may also return longs or strings.
> This results in these metrics throwing exceptions, which generally breaks the reporter mechanism completely.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)