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

kvstreamer: add non-negative float validation to a cluster setting #103588

Merged
merged 1 commit into from
May 18, 2023

Conversation

yuzefovich
Copy link
Member

@yuzefovich yuzefovich commented May 18, 2023

We forgot to add non-negative validation function to private sql.distsql.streamer.avg_response_size_multiple cluster setting. If this were set to a negative value, it would result in an undefined behavior of the streamer (we could try setting negative TargetBytes limit on BatchRequests). I don't think anyone ever used it though so far.

Epic: None

Release note: None

We forgot to add non-negative validation function to private
`sql.distsql.streamer.avg_response_size_multiple` cluster setting. If
this were set to a negative value, it would result in an undefined
behavior of the streamer (we could try setting negative `TargetBytes`
limit on `BatchRequest`s). I don't think anyone ever used it though so
far.

Release note: None
@yuzefovich yuzefovich added backport-22.2.x backport-23.1.x Flags PRs that need to be backported to 23.1 labels May 18, 2023
@yuzefovich yuzefovich requested a review from a team as a code owner May 18, 2023 14:02
@blathers-crl
Copy link

blathers-crl bot commented May 18, 2023

It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR?

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Collaborator

@michae2 michae2 left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @rharding6373)

@yuzefovich
Copy link
Member Author

TFTR!

bors r+

@rharding6373
Copy link
Collaborator

Nice fix.

@craig
Copy link
Contributor

craig bot commented May 18, 2023

Build succeeded:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-23.1.x Flags PRs that need to be backported to 23.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants