Skip to content

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
Contributor

@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