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

telemetry: fix the integer quantization #53604

Merged
merged 1 commit into from
Aug 31, 2020

Conversation

knz
Copy link
Contributor

@knz knz commented Aug 28, 2020

The code was previously quantizing 100 to 10, and only
101 and higher to 100. This patch fixes it.

Additionally, this code ensures that negative values also get
quantized. This change does not impact any caller for now (there is no
caller that expects negative value) but will be used in an upcoming
setting telemetry change.

Release justification: low risk, high benefit changes to existing functionality

Release note: None

@knz knz requested a review from dt August 28, 2020 18:30
@cockroach-teamcity
Copy link
Member

This change is Reviewable

The code was previously quantizing 100 to 10, and only
101 and higher to 100. This patch fixes it.

Additionally, this code ensures that negative values also get
quantized. This change does not impact any caller for now (there is no
caller that expects negative value) but will be used in an upcoming
setting telemetry change.

Release justification: low risk, high benefit changes to existing functionality

Release note: None
@knz knz force-pushed the 20200828-fix-setting-quantization branch from 1ac12a2 to a677e80 Compare August 28, 2020 19:06
@knz knz requested a review from irfansharif August 31, 2020 18:32
@knz
Copy link
Contributor Author

knz commented Aug 31, 2020

thanks!

bors r=irfansharif

@craig
Copy link
Contributor

craig bot commented Aug 31, 2020

This PR was included in a batch that was canceled, it will be automatically retried

@craig
Copy link
Contributor

craig bot commented Aug 31, 2020

Build succeeded:

@craig craig bot merged commit cff29e7 into cockroachdb:master Aug 31, 2020
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