-
Notifications
You must be signed in to change notification settings - Fork 51
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
Increase buffer token size as needed #1230
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adombeck
reviewed
Mar 21, 2025
ecb1af8
to
b55492b
Compare
adombeck
reviewed
Mar 24, 2025
23b954d
to
293c7fe
Compare
adombeck
approved these changes
Mar 25, 2025
I've been running the fuzz test on my machine for 30 minutes now and it didn't crash yet, so it seems like your fix worked. |
didrocks
approved these changes
Mar 25, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! We are now capable of handling more use cases and the implementation is elegant. Thanks you both for the suggestions and keeping the fuzz test!
In order to be able to resize the buffer later, we need to have control over the file cursor otherwise it would move forward and we would not be able to retry reading the large entry that failed due to lack of buffer size.
Although the token size is already quite large by default, we might end up in a situation where it's still not big enough, so we need to address this by increasing its size if we find one that's too large.
293c7fe
to
8d5bcd2
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Some users had issues with GPOs with large entries overflowing the buffer and causing the update to fail. This fixes that by progressively increasing the expected readable token size until the maximum we can (the
bufio
package limits this).UDENG-6434
Closes #1191