Skip to content

Fix a small bug with server metrics parsing + a few code cleanups. #2465

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

Merged
merged 3 commits into from
Jun 24, 2025

Conversation

avshenuk
Copy link
Contributor

Summary

  • Fix bug with incorrect usage of Integer where Long is expected.
    Metrics returned from the server can overflow Integer e.g. when elapsed time is higher than 2 seconds (it's in nanoseconds).
  • Use generic name instead of specific metric name.
  • Update misleading Javadocs for client side metrics.
    Stopwatch metrics always convert nanoseconds to milliseconds when getLong() is called on them.

@CLAassistant
Copy link

CLAassistant commented Jun 23, 2025

CLA assistant check
All committers have signed the CLA.

Copy link

@windsurf-bot windsurf-bot bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 To request another review, post a new comment with "/windsurf-review".

avshenuk added 3 commits June 23, 2025 13:01
Metrics returned from the server can overflow Integer e.g. when elapsed time is higher than 2 seconds (it's in nanoseconds).
Stopwatch metrics always convert nanoseconds to milliseconds when getLong() is called on them.
@avshenuk avshenuk changed the title Fixes a small bug with server metrics parsing + a few code cleanups. Fix a small bug with server metrics parsing + a few code cleanups. Jun 23, 2025
@chernser
Copy link
Contributor

@avshenuk thank you for the contribution!

@chernser chernser merged commit 9993564 into ClickHouse:main Jun 24, 2025
18 of 23 checks passed
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

Successfully merging this pull request may close these issues.

3 participants