Skip to content

Conversation

@squah-confluent
Copy link
Contributor

@squah-confluent squah-confluent commented Nov 25, 2025

Clamp negative values in coordinator histograms, instead of throwing
an exception.

Clamp negative values in coordinator histograms, instead of throwing
an exception.
@github-actions github-actions bot added triage PRs from the community group-coordinator small Small PRs labels Nov 25, 2025
assertEquals(highestTrackableValue, hdrHistogram.max(now));

hdrHistogram.record(-50L);
assertEquals(0, hdrHistogram.max(now + 1000L));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

There's no histogram min method. We can add one, but it'd be only used in this one test.

@dajac
Copy link
Member

dajac commented Nov 25, 2025

@squah-confluent Could you please explain the issue and the fix in the description?

This must be back ported to 4.2, 4.1 and 4.0.

@dajac dajac self-requested a review November 25, 2025 19:07
@github-actions github-actions bot removed the triage PRs from the community label Nov 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants