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

[BUG] Consumer Config fields are 32 bits (ints) not 64 bits (longs) #930

Merged
merged 2 commits into from
Jun 21, 2023

Conversation

scottf
Copy link
Contributor

@scottf scottf commented Jun 21, 2023

Building a consumer config allowed the user to supply a long for fields that where only 32 bit signed values. Even though it would be unusual for a developer to provide a value larger than 2,147,483,647 it's still possible from the builder interface.
This fix checks the value and if it's larger than 2,147,483,647 it just makes it 2,147,483,647.
This seems reasonable as the user probably meant unlimited which this still provides.

@scottf scottf requested a review from piotrpio June 21, 2023 15:48
Copy link
Member

@aricart aricart left a comment

Choose a reason for hiding this comment

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

LGTM

@scottf scottf merged commit edd4ebe into main Jun 21, 2023
2 checks passed
@scottf scottf deleted the consumer-config-32-bit-fix branch June 21, 2023 16:35
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.

None yet

2 participants