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

Divide-by-zero in rd_hdr_histogram_new() #4949

Open
4 of 7 tasks
vdeters opened this issue Jan 9, 2025 · 1 comment
Open
4 of 7 tasks

Divide-by-zero in rd_hdr_histogram_new() #4949

vdeters opened this issue Jan 9, 2025 · 1 comment

Comments

@vdeters
Copy link

vdeters commented Jan 9, 2025

Read the FAQ first: https://github.com/confluentinc/librdkafka/wiki/FAQ

Do NOT create issues for questions, use the discussion forum: https://github.com/confluentinc/librdkafka/discussions

Description

Divide-by-zero thrown, presumably caused by taking the logarithm of 0, which is passed in as parameter minValue.

How to reproduce

  • Build with WITH_HDRHISTOGRAM enabled.
  • Leave global parameter enable.metrics.push at its default value of true.
  • Connect to any broker.

IMPORTANT: Always try to reproduce the issue on the latest released version (see https://github.com/confluentinc/librdkafka/releases), if it can't be reproduced on the latest version the issue has been fixed.

Checklist

IMPORTANT: We will close issues where the checklist has not been completed.

Please provide the following information:

  • librdkafka version (release number or git tag): 2.6.1 or 2.8.0
  • Apache Kafka version: Confluent 7.5.4
  • librdkafka client configuration: metadata.broker.list=trcv002.trc.sas.com:9092,group.id=163dd99c-0b48-43a9-b2e8-fb3c935398c7,enable.partition.eof=true,log.connection.close=false,default_topic_conf={auto.offset.reset=smallest}
  • Operating system: Centos 8(x64)
  • Provide logs (with debug=.. as necessary) from librdkafka
  • Provide broker log excerpts
  • Critical issue
@vdeters
Copy link
Author

vdeters commented Jan 14, 2025

Also, floating point exceptions must be enabled to reproduce. This is why sample code and basic tests don’t fail like this.

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

No branches or pull requests

1 participant