Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assert failing when none of KIP 714 requested metrics are implemented by librdkafka #4833

Closed
6 tasks done
emasab opened this issue Aug 29, 2024 · 1 comment
Closed
6 tasks done

Comments

@emasab
Copy link
Collaborator

emasab commented Aug 29, 2024

Description

In case the broker is requesting a set of KIP 714 metrics that isn't matching any of librdkafka implemented metrics an assert is triggered that makes the client process terminate.

How to reproduce

Enable the metric producer.request.latency.avg on the cluster, this particular metric is only present in Java client.
Connect to the cluster with librdkafka 2.5.0.
Happens to clients already connected too.

Checklist

Please provide the following information:

  • librdkafka version (2.5.0)
  • Apache Kafka version: 3.7.0+
  • librdkafka client configuration: enable.metrics.push=true (default)
  • Operating system: any
  • Provide logs (with debug=.. as necessary) from librdkafka
  • Critical issue

Logs

[rdkafka#producer-30][METADATA][7][thrd:main]: ssl://: 1/1 requested topic(s) seen in metadata (lookup by name)
[rdkafka#producer-30][CONTROLLERID][7][thrd:main]: ssl://: ControllerId update 2 -> 0
[rdkafka#producer-30][BROADCAST][7][thrd:main]: Broadcasting state change
[rdkafka#producer-19][PUSH][7][thrd:main]: Serializing metrics
[rdkafka#producer-19][PUSH][7][thrd:main]: Resource attributes count: 0
[rdkafka#producer-19][PUSH][7][thrd:main]: Total metrics to be encoded count: 0
[rdkafka#producer-19][PUSH][7][thrd:main]: Push Telemetry metrics encoded, size: 0
rdbuf.c:834: rd_slice_init_full: Assertion `r == 0' failed.
@pranavrth
Copy link
Member

Fixed with v2.5.3.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants